Skip to main content

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

westat logo

金融行业信用评分卡模型开发工具


一、描述

用于开发信用评分卡模型的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

决策树分箱

tree_iv view_woe_iv

等频分箱

qcut_woe_iv

个性化分箱

cut_woe_iv

ks和auc计算

auc_ks

ks绘图

plot_ks

模型提升度 Lift 计算

get_lift

模型稳定度 PSI计算

get_psi

评分卡制作

get_scorecard

评分卡分数预测

predict_score

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

westat-0.3.3.tar.gz (14.3 MB view details)

Uploaded Source

Built Distribution

westat-0.3.3-py3-none-any.whl (12.3 MB view details)

Uploaded Python 3

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

Hashes for westat-0.3.3.tar.gz
Algorithm Hash digest
SHA256 0dff5b149054cd1246d3ad37106279924756a95993f8d01b03d361038ed11496
MD5 920dd81e6c8662e46170ca6a5786e9a5
BLAKE2b-256 7eff33e963d70ce54cec7dc99b6071b1ed3074b465d8826d0a42960cc4070bf3

See more details on using hashes here.

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

Hashes for westat-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d5521f86491c7d92db52622a6fbd87a93eeee8b4b33a5afd8da65841ab2420
MD5 cf499f4c30141ab84aa837594dafc492
BLAKE2b-256 18a0456ba75db1c79270f99d16a2eeefefb266d4ae221aceee4ab46f2157a152

See more details on using hashes here.

Supported by

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