Skip to main content

woe_iv

caculate woe(weight of evidence) of each feature and then iv(information value).

Features

  • 1 Calculation of WOE and IV

    def WOE(cls, data, varList, type0=’Con’, target_id=’y’, resfile=’result.xlsx’):

    “”” 对分类变量直接进行分组统计并进行WOE、IV值 计算 对连续型变量进行分组(default:10)后进行WOE、IV值 计算 :param data: pandas DataFrame, mostly refer to ABT(Analysis Basics Table) :param varList: variable list :param type0: Continuous or Discontinuous(Category), ‘con’ is the required input for Continuous :param target_id: y flag when gen the train data :param resfile: download path of the result file of WOE and IV :return: pandas DataFrame, result of woe and iv value according y flag “”” pass

  • 2 Apply of WOE repalcement of ABT

    def applyWOE(cls, X_data, X_map, var_list, id_cols_list=None, flag_y=None):

    “”” 将最优分箱的结果WOE值对原始数据进行编码 :param X_data: pandas DataFrame, mostly refer to ABT(Analysis Basics Table) :param X_map: pandas dataframe, map table, result of applying WOE, refer the func woe_iv.WOE :param var_list: variable list :param id_cols_list: some other features not been analysed but wanted like id, adress, etc. :param flag_y: y flag when gen the train data :return: pandas DataFrame, result of bining with y flag “”” pass

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-12-19) 0.2.0 (2018-12-2l) ——————

  • First release on PyPI.

Release files for woe-iv 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for woe-iv 0.2.0
File Size Uploaded
woe_iv-0.2.0.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for woe-iv 0.2.0
File Interpreter ABI Platform
woe_iv-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 20.7 kB

Release files / woe_iv-0.2.0.tar.gz

Download URL woe_iv-0.2.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7215d2c398fed2c747e1eaea2671e00212c1a8231344d177a7d3716ed1019b4
BLAKE2b-256 checksum
How to use checksums
8499469b3c58a657814a3117cd0c575cd6b6d58b0880762dac97fb7ec1f49aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release files / woe_iv-0.2.0-py2.py3-none-any.whl

Download URL woe_iv-0.2.0-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e0a052684f2a1b0aaf001d50155a62d0e1a8b4a37061e779009d35dc89240729
BLAKE2b-256 checksum
How to use checksums
735f8e0b704264a9ecffb1f37e71469f0cbdc7c1c07415c9e19560a5c6b6dbc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page