Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

scorecardpy

> 编程语言
Open source

Scorecard Development in python, 评分卡

796 stars0 likes0 views
WebsiteGitHub

About

Scorecard Development in python, 评分卡

scorecardpy

This package is python version of R package scorecard. Its goal is to make the development of traditional credit risk scorecard model easier and efficient by providing functions for some common tasks.

  • data partition (split_df)
  • variable selection (iv, var_filter)
  • weight of evidence (woe) binning (woebin, woebin_plot, woebin_adj, woebin_ply)
  • scorecard scaling (scorecard, scorecard_ply)
  • performance evaluation (perf_eva, perf_psi)

Performance Optimizations

This fork includes several performance improvements over the original scorecardpy:

  • WOE Binning Optimization: Pre-compiled regex patterns and reduced DataFrame chaining in woebin functions for faster binning
  • Performance Evaluation Optimization: Replaced manual AUC calculation with sklearn.metrics.roc_auc_score for significant speedup; eliminated eval() usage with dictionary-based function dispatch for better security and performance

Installation

  • Install the release version of scorecardpy from PYPI with:
pip install scorecardpy
  • Install the latest version of scorecardpy from github with:
pip install git+git://github.com/shichenxie/scorecardpy.git

Example

This is a basic example which shows you how to develop a common credit risk scorecard:

…

Issues· 38 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonbinningcredit-scoringpythonrelease

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言