Python之woe:woe库函数的简介、安装、使用方法之详细攻略
目录
woe转换工具主要用于信用评级的记分卡模型。在woe中,对变量进行分箱的原理类似于二叉决策树,其中决定如何划分的目标函数是iv值。特点如下:
官网:https://github.com/boredbird/woe
将每个值作为一个分组,计算个分组woe值,再计算IV值。
pip install woe
|- __init__ |- config.py | |-- config | |-- __init__ | |-- change_config_var_dtype() | |-- load_file() |- eval.py | |-- compute_ks() | |-- eval_data_summary() | |-- eval_feature_detail() | |-- eval_feature_stability() | |-- eval_feature_summary() | |-- eval_model_stability() | |-- eval_model_summary() | |-- eval_segment_metrics() | |-- plot_ks() | |-- proc_cor_eval() | |-- proc_validation() | |-- wald_test() |- feature_process.py | |-- binning_data_split() | |-- calculate_iv_split() | |-- calulate_iv() | |-- change_feature_dtype() | |-- check_point() | |-- fillna() | |-- format_iv_split() | |-- proc_woe_continuous() | |-- proc_woe_discrete() | |-- process_train_woe() | |-- process_woe_trans() | |-- search() | |-- woe_trans() |- ftrl.py | |-- FTRL() | |-- LR() |- GridSearch.py | |-- fit_single_lr() | |-- grid_search_lr_c() | |-- grid_search_lr_c_main() | |-- grid_search_lr_validation()