Skip to main content

A professional and modern toolset for scorecard modeling, fully compatible with scikit-learn

Project description

ScoreCardModel

ScoreCardModel Banner

PyPI version Documentation Status License Ruff

ScoreCardModel is a professional and modern toolset for scorecard modeling, fully compatible with scikit-learn. It is designed for credit risk analysts and data scientists who need to build transparent, regulator-friendly scoring models with ease.

🚀 Key Features

  • 🛠 Scikit-Learn Compatible: BinningTransformer, WOETransformer, and ScoreCardTransformer work in any Pipeline or GridSearchCV.
  • 📊 Rich Analytics: 18+ plot types (KS, ROC, CAP, Lift, Calibration, PSI, etc.) for comprehensive model evaluation.
  • 📝 Automated Reporting: Generate professional Markdown or Excel reports with one function call.
  • 🔄 5 WOE Methods: Standard, Adjusted (Laplace), Empirical Logit, Signed, and Weighted Weight of Evidence.
  • 🎮 Interactive Dashboard: A Jupyter-based what-if widget for real-time scorecard testing.
  • 🏢 Industry Standard: Built-in support for PDO (Points to Double Odds) and Base-Odds scaling.

📸 Visual Gallery

KS Curve ROC Curve CAP Curve
KS ROC CAP
Score Distribution Scorecard Waterfall IV Summary
Score Dist Waterfall IV

See all 12+ visualizations →

📦 Installation

pip install scorecard-toolkit

⚡ Quick Start

from ScoreCardModel import ScoreCardWrapper

# Initialize and fit
sc = ScoreCardWrapper(binning_strategy='quantile', base_points=600, pdo=20)
sc.fit(X_train, y_train)

# Predict scores and export scorecard
scores = sc.predict(X_test)
card = sc.export_scorecard()
print(card.head(10))

📚 Documentation

Visit scorecardmodel.readthedocs.io for the full documentation, including:

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for more details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

scorecard_toolkit-2.0.0.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

scorecard_toolkit-2.0.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file scorecard_toolkit-2.0.0.tar.gz.

File metadata

  • Download URL: scorecard_toolkit-2.0.0.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scorecard_toolkit-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d652e25909d5c079af9142ab8da7fa0edb7d80f1c2e2380a2fbed605833d48bc
MD5 bf0614bac0eb7ce17d9b9b6e274208b9
BLAKE2b-256 bf279aac2c4ef5827a8000953ab600b7b51cbf90a64c4f4d055c67d853747f1e

See more details on using hashes here.

File details

Details for the file scorecard_toolkit-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: scorecard_toolkit-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scorecard_toolkit-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5488b1c53bfa03f42ca8e41ba9ffd7cb066d1970da7b8982ba5bcbaa6f3e7be
MD5 c2480adb3427ba03a24b5c76eff66fd8
BLAKE2b-256 c1d3e8499f7585b410ed4f949d514c1ee29615813c18290b1c80d4ec2a2f8a47

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