westat


Namewestat JSON
Version 0.3.2 PyPI version JSON
download
home_pageNone
SummaryA package for stat and data miner,calculate woe and iv,and plot woe ,plot iv,calculate ks ,plot ks and auc,plot roc
upload_time2024-04-18 14:38:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords auc iv ks lift psi roc scorecard woe
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

<h1 align="center" style="text-align:center;">
  <img src="./static/logo.png" width = "270" height = "90" alt="westat logo" align=center />
</h1>

<p align="center"> 金融行业信用评分卡模型开发工具  </p>

<p align="center" >
<a href="https://gitee.com/westat/westat"><img  src="https://gitee.com/westat/westat/raw/master/static/gitee.png" width = "25" height = "25"></a>
<a href="https://github.com/stat-fit/westat"><img  src="https://gitee.com/westat/westat/raw/master/static/github.png" width = "25" height = "25"></a>
<a href="https://pypi.org/project/westat/" ><img src="https://gitee.com/westat/westat/raw/master/static/pypi.png" width = "25" height = "25"></a>
<br>
</p>

<h3> 一、描述 </h3>

用于开发信用评分卡模型的python包,包含特征分箱、特征筛选、WOE和IV计算,KS值和AUC计算、模型提升度LIFT、模型稳定性 PSI 计算、决策树绘制、评分卡制作等功能
<br>另外,westat包含常用的金融计算函数,例如等额本息、等额本金等还款方式的计算。

westat基于python3.10进行开发,是开源数据分析处理项目<a href="http://pyminer.com/" >pyminer </a> 的一部分,但是也可以被单独使用。
westat 希望更多朋友能够参与项目,一起维护并提升!


<h3>二、交流</h3>
<ul>
<li>QQ群:945391275 </li>
<li>邮箱:westat@foxmail.com</li>
</ul>

<h3> 三、安装 </h3>

```bash
pip install westat
```

<h3> 四、开发 </h3>

```bash
# 创建环境
conda env create -f environment.yml
# 激活环境
conda activate westat-dev
# 构建
python -m build
# 上传到 pypi
python -m twine upload dist/*
```

<h3> 五、测试 </h3>

```bash
# 创建环境
conda env create -f environment.yml
# 激活环境
conda activate westat-dev
# 测试
jupyter-notebook
# 在jupyter上打开 HereWeGo.ipynb 进行测试
```

<h3> 六、常见操作 </h3>
<h4>查看版本号</h4>

```bash
import westat
westat.version
```

<h4>使用教程</h4>


请查看帮助文档 <a href="https://westat.readthedocs.io" >https://westat.readthedocs.io </a>
<br>


<h3> 决策树分箱 </h3>
<p></p>
<img src="https://gitee.com/westat/westat/raw/master/static/tree_iv.png"  alt="tree_iv" align=center />
<img src="https://gitee.com/westat/westat/raw/master/static/view_woe_iv.png"  alt="view_woe_iv" align=center />

<p></p>

<h3> 等频分箱 </h3>

<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/qcut_woe_iv.png"  alt="qcut_woe_iv" align=center />

<p></p>
<h3> 个性化分箱 </h3>

<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/cut_woe_iv.png"  alt="cut_woe_iv" align=center />

<h3> ks和auc计算 </h3>
<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/auc_ks.png"  alt="auc_ks" align=center />

<p></p>

<h3> ks绘图 </h3>
<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/plot_ks.png"  alt="plot_ks" align=center />

<p></p>
<h3> 模型提升度 Lift 计算 </h3>

<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/get_lift.png"  alt="get_lift" align=center />

<p></p>
<h3> 模型稳定度 PSI计算 </h3>
<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/get_psi.png"  alt="get_psi" align=center />

<p></p>

<h3> 评分卡制作 </h3>
<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/get_scorecard.png"  alt="get_scorecard" align=center />

<p></p>

<h3> 评分卡分数预测 </h3>
<p></p>

<img src="https://gitee.com/westat/westat/raw/master/static/predict_score.png"  alt="predict_score" align=center />

<p></p>
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "westat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "auc, iv, ks, lift, psi, roc, scorecard, woe",
    "author": null,
    "author_email": "westat <westat@foxmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e8/49/e20f4b13aef31d0741d61b2c193b6c549d4cee73216730263a612758a311/westat-0.3.2.tar.gz",
    "platform": null,
    "description": "\n\n<h1 align=\"center\" style=\"text-align:center;\">\n  <img src=\"./static/logo.png\" width = \"270\" height = \"90\" alt=\"westat logo\" align=center />\n</h1>\n\n<p align=\"center\"> \u91d1\u878d\u884c\u4e1a\u4fe1\u7528\u8bc4\u5206\u5361\u6a21\u578b\u5f00\u53d1\u5de5\u5177  </p>\n\n<p align=\"center\" >\n<a href=\"https://gitee.com/westat/westat\"><img  src=\"https://gitee.com/westat/westat/raw/master/static/gitee.png\" width = \"25\" height = \"25\"></a>\n<a href=\"https://github.com/stat-fit/westat\"><img  src=\"https://gitee.com/westat/westat/raw/master/static/github.png\" width = \"25\" height = \"25\"></a>\n<a href=\"https://pypi.org/project/westat/\" ><img src=\"https://gitee.com/westat/westat/raw/master/static/pypi.png\" width = \"25\" height = \"25\"></a>\n<br>\n</p>\n\n<h3> \u4e00\u3001\u63cf\u8ff0 </h3>\n\n\u7528\u4e8e\u5f00\u53d1\u4fe1\u7528\u8bc4\u5206\u5361\u6a21\u578b\u7684python\u5305\uff0c\u5305\u542b\u7279\u5f81\u5206\u7bb1\u3001\u7279\u5f81\u7b5b\u9009\u3001WOE\u548cIV\u8ba1\u7b97\uff0cKS\u503c\u548cAUC\u8ba1\u7b97\u3001\u6a21\u578b\u63d0\u5347\u5ea6LIFT\u3001\u6a21\u578b\u7a33\u5b9a\u6027 PSI \u8ba1\u7b97\u3001\u51b3\u7b56\u6811\u7ed8\u5236\u3001\u8bc4\u5206\u5361\u5236\u4f5c\u7b49\u529f\u80fd\n<br>\u53e6\u5916\uff0cwestat\u5305\u542b\u5e38\u7528\u7684\u91d1\u878d\u8ba1\u7b97\u51fd\u6570\uff0c\u4f8b\u5982\u7b49\u989d\u672c\u606f\u3001\u7b49\u989d\u672c\u91d1\u7b49\u8fd8\u6b3e\u65b9\u5f0f\u7684\u8ba1\u7b97\u3002\n\nwestat\u57fa\u4e8epython3.10\u8fdb\u884c\u5f00\u53d1\uff0c\u662f\u5f00\u6e90\u6570\u636e\u5206\u6790\u5904\u7406\u9879\u76ee<a href=\"http://pyminer.com/\" >pyminer </a> \u7684\u4e00\u90e8\u5206\uff0c\u4f46\u662f\u4e5f\u53ef\u4ee5\u88ab\u5355\u72ec\u4f7f\u7528\u3002\nwestat \u5e0c\u671b\u66f4\u591a\u670b\u53cb\u80fd\u591f\u53c2\u4e0e\u9879\u76ee\uff0c\u4e00\u8d77\u7ef4\u62a4\u5e76\u63d0\u5347\uff01\n\n\n<h3>\u4e8c\u3001\u4ea4\u6d41</h3>\n<ul>\n<li>QQ\u7fa4\uff1a945391275 </li>\n<li>\u90ae\u7bb1\uff1awestat@foxmail.com</li>\n</ul>\n\n<h3> \u4e09\u3001\u5b89\u88c5 </h3>\n\n```bash\npip install westat\n```\n\n<h3> \u56db\u3001\u5f00\u53d1 </h3>\n\n```bash\n# \u521b\u5efa\u73af\u5883\nconda env create -f environment.yml\n# \u6fc0\u6d3b\u73af\u5883\nconda activate westat-dev\n# \u6784\u5efa\npython -m build\n# \u4e0a\u4f20\u5230 pypi\npython -m twine upload dist/*\n```\n\n<h3> \u4e94\u3001\u6d4b\u8bd5 </h3>\n\n```bash\n# \u521b\u5efa\u73af\u5883\nconda env create -f environment.yml\n# \u6fc0\u6d3b\u73af\u5883\nconda activate westat-dev\n# \u6d4b\u8bd5\njupyter-notebook\n# \u5728jupyter\u4e0a\u6253\u5f00 HereWeGo.ipynb \u8fdb\u884c\u6d4b\u8bd5\n```\n\n<h3> \u516d\u3001\u5e38\u89c1\u64cd\u4f5c </h3>\n<h4>\u67e5\u770b\u7248\u672c\u53f7</h4>\n\n```bash\nimport westat\nwestat.version\n```\n\n<h4>\u4f7f\u7528\u6559\u7a0b</h4>\n\n\n\u8bf7\u67e5\u770b\u5e2e\u52a9\u6587\u6863 <a href=\"https://westat.readthedocs.io\" >https://westat.readthedocs.io </a>\n<br>\n\n\n<h3> \u51b3\u7b56\u6811\u5206\u7bb1 </h3>\n<p></p>\n<img src=\"https://gitee.com/westat/westat/raw/master/static/tree_iv.png\"  alt=\"tree_iv\" align=center />\n<img src=\"https://gitee.com/westat/westat/raw/master/static/view_woe_iv.png\"  alt=\"view_woe_iv\" align=center />\n\n<p></p>\n\n<h3> \u7b49\u9891\u5206\u7bb1 </h3>\n\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/qcut_woe_iv.png\"  alt=\"qcut_woe_iv\" align=center />\n\n<p></p>\n<h3> \u4e2a\u6027\u5316\u5206\u7bb1 </h3>\n\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/cut_woe_iv.png\"  alt=\"cut_woe_iv\" align=center />\n\n<h3> ks\u548cauc\u8ba1\u7b97 </h3>\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/auc_ks.png\"  alt=\"auc_ks\" align=center />\n\n<p></p>\n\n<h3> ks\u7ed8\u56fe </h3>\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/plot_ks.png\"  alt=\"plot_ks\" align=center />\n\n<p></p>\n<h3> \u6a21\u578b\u63d0\u5347\u5ea6 Lift \u8ba1\u7b97 </h3>\n\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/get_lift.png\"  alt=\"get_lift\" align=center />\n\n<p></p>\n<h3> \u6a21\u578b\u7a33\u5b9a\u5ea6 PSI\u8ba1\u7b97 </h3>\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/get_psi.png\"  alt=\"get_psi\" align=center />\n\n<p></p>\n\n<h3> \u8bc4\u5206\u5361\u5236\u4f5c </h3>\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/get_scorecard.png\"  alt=\"get_scorecard\" align=center />\n\n<p></p>\n\n<h3> \u8bc4\u5206\u5361\u5206\u6570\u9884\u6d4b </h3>\n<p></p>\n\n<img src=\"https://gitee.com/westat/westat/raw/master/static/predict_score.png\"  alt=\"predict_score\" align=center />\n\n<p></p>",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for stat and data miner,calculate woe and iv,and plot woe ,plot iv,calculate ks ,plot ks and auc,plot roc",
    "version": "0.3.2",
    "project_urls": {
        "documentation": "https://westat.readthedocs.io",
        "homepage": "http://www.pyminer.com",
        "repository": "https://gitee.com/westat/westat"
    },
    "split_keywords": [
        "auc",
        " iv",
        " ks",
        " lift",
        " psi",
        " roc",
        " scorecard",
        " woe"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ced82cdd840150cdb477c2ab0eb3e289010abcfd0770a2cd5a192523d3100f0",
                "md5": "b22c6cc95bf04a8775bfdbc0a7e55222",
                "sha256": "814d4f94bb164c1d54b7309375bcfaa4ca8e7eadbb94238492e07e4213e65dee"
            },
            "downloads": -1,
            "filename": "westat-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b22c6cc95bf04a8775bfdbc0a7e55222",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 12302704,
            "upload_time": "2024-04-18T14:38:21",
            "upload_time_iso_8601": "2024-04-18T14:38:21.349662Z",
            "url": "https://files.pythonhosted.org/packages/2c/ed/82cdd840150cdb477c2ab0eb3e289010abcfd0770a2cd5a192523d3100f0/westat-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e849e20f4b13aef31d0741d61b2c193b6c549d4cee73216730263a612758a311",
                "md5": "d2e0feea72a299d40dd0ae690022cbd6",
                "sha256": "6e12a533701cb8943e892642460c36196cb8c028fa875177ed194bdca7ee23db"
            },
            "downloads": -1,
            "filename": "westat-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d2e0feea72a299d40dd0ae690022cbd6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 14307578,
            "upload_time": "2024-04-18T14:38:27",
            "upload_time_iso_8601": "2024-04-18T14:38:27.560633Z",
            "url": "https://files.pythonhosted.org/packages/e8/49/e20f4b13aef31d0741d61b2c193b6c549d4cee73216730263a612758a311/westat-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-18 14:38:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "westat"
}
        
Elapsed time: 0.42087s