Skip to main content

ML modeling tools in python for risk management domain including loan, credit card, etc.

Project description

About The Project

While GitHub hosts many excellent risk modeling libraries, most emphasize traditional logistic regression approaches. This project addresses modern needs by:

  1. Focusing on tree-based methodologies (XGBoost, LightGBM)
  2. Providing essential modeling tools (PSI, IV, Bivar, etc.)
  3. Supporting documentation of all modeling steps

Library Functionality

📈 Modeling Procedure

  • Hyperparameter Tuning:
    random_search_xgboost(), random_search_lightgbm()
  • Model Training:
    train_single_model_xgboost(), train_single_model_lightgbm()
  • Feature Analysis:
    feature_importance() (gain-based),
    variable_reduction() (feature-importance-driven selection)
  • Performance Metrics:
    model_performance() (AUC, KS, Top Capture Rate, Top Bad Rate)

🛠️ Modeling Tools

  • Stability Analysis:
    calculate_numeric_psi(), calculate_categorical_psi()
  • Predictive Strength:
    calculate_numeric_iv(), calculate_categorical_iv()
  • Feature Evaluation:
    compute_numeric_bivar(), compute_categorical_bivar(),
    proc_means() (quality checks)
  • UAT Support:
    proc_compare() (feature-by-feature value validation)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

risk_modeling-1.0.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

risk_modeling-1.0.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file risk_modeling-1.0.0.tar.gz.

File metadata

  • Download URL: risk_modeling-1.0.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for risk_modeling-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6868e4a26be8bb632950019e81eb75ff85c4f66cf6ec9c06f04d87dca9f5347c
MD5 09e0a23ed4fa72d9717ce5819dde6f82
BLAKE2b-256 0abfb99df96685d0faf339a64f7552b41731fcbfb75c5fc83282014ce49b827f

See more details on using hashes here.

File details

Details for the file risk_modeling-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: risk_modeling-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for risk_modeling-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 048e6c1a3db827bd00037eb09b79a9860a589892d861a64af623db3034aa4dab
MD5 1f53ea24ad243aec29a10e5f183c7418
BLAKE2b-256 7ed2b2d523e6c1215dff46c71aa5ed3ed8433f95bc9283ca5b12ba7f01643762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page