A package for stat and data miner,calculate woe and iv,and plot woe ,plot iv,calculate ks ,plot ks and auc,plot roc
Project description
金融行业信用评分卡模型开发工具
一、描述
用于开发信用评分卡模型的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计算
评分卡制作
评分卡分数预测
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file westat-0.3.3.tar.gz.
File metadata
- Download URL: westat-0.3.3.tar.gz
- Upload date:
- Size: 14.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dff5b149054cd1246d3ad37106279924756a95993f8d01b03d361038ed11496
|
|
| MD5 |
920dd81e6c8662e46170ca6a5786e9a5
|
|
| BLAKE2b-256 |
7eff33e963d70ce54cec7dc99b6071b1ed3074b465d8826d0a42960cc4070bf3
|
File details
Details for the file westat-0.3.3-py3-none-any.whl.
File metadata
- Download URL: westat-0.3.3-py3-none-any.whl
- Upload date:
- Size: 12.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0d5521f86491c7d92db52622a6fbd87a93eeee8b4b33a5afd8da65841ab2420
|
|
| MD5 |
cf499f4c30141ab84aa837594dafc492
|
|
| BLAKE2b-256 |
18a0456ba75db1c79270f99d16a2eeefefb266d4ae221aceee4ab46f2157a152
|