金融行业信用评分卡模型开发工具
一、描述
用于开发信用评分卡模型的python包,包含特征分箱、特征筛选、WOE和IV计算,KS值和AUC计算、模型提升度LIFT、模型稳定性 PSI 计算、决策树绘制、评分卡制作等功能
另外,westat包含常用的金融计算函数,例如等额本息、等额本金等还款方式的计算。
westat基于python3.10进行开发,是开源数据分析处理项目pyminer 的一部分,但是也可以被单独使用。 westat 希望更多朋友能够参与项目,一起维护并提升!
二、交流
- QQ群:945391275
- 邮箱:westat@foxmail.com
三、安装
pip install westat
四、开发
# 创建环境
conda env create -f environment.yml
# 激活环境
conda activate westat-dev
# 构建
python -m build
# 上传到 pypi
python -m twine upload dist/*
五、测试
# 创建环境
conda env create -f environment.yml
# 激活环境
conda activate westat-dev
# 测试
jupyter-notebook
# 在jupyter上打开 HereWeGo.ipynb 进行测试
六、常见操作
查看版本号
import westat
westat.version
使用教程
请查看帮助文档 https://westat.readthedocs.io
决策树分箱
等频分箱
个性化分箱
ks和auc计算
ks绘图
模型提升度 Lift 计算
模型稳定度 PSI计算
评分卡制作
评分卡分数预测
Metadata
Release files for westat 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| westat-0.3.3.tar.gz | 14.3 MB | Without provenance | Details for westat-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| westat-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for westat-0.3.3-py3-none-any.whl |
Total release size: 26.6 MB
Release files / westat-0.3.3.tar.gz
| Download URL | westat-0.3.3.tar.gz |
|---|---|
| Size | 14.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dff5b149054cd1246d3ad37106279924756a95993f8d01b03d361038ed11496
|
|
BLAKE2b-256 checksum How to use checksums |
7eff33e963d70ce54cec7dc99b6071b1ed3074b465d8826d0a42960cc4070bf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / westat-0.3.3-py3-none-any.whl
| Download URL | westat-0.3.3-py3-none-any.whl |
|---|---|
| Size | 12.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0d5521f86491c7d92db52622a6fbd87a93eeee8b4b33a5afd8da65841ab2420
|
|
BLAKE2b-256 checksum How to use checksums |
18a0456ba75db1c79270f99d16a2eeefefb266d4ae221aceee4ab46f2157a152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for westat 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.