Skip to content

Commit

Permalink
fix bug: line 187.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxingfeng committed Nov 24, 2018
1 parent 39c9bf6 commit a525f6a
Show file tree
Hide file tree
Showing 6 changed files with 30,161 additions and 824 deletions.
26 changes: 26 additions & 0 deletions f_conf/credit_card.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
is_continuous,is_identify,var_dtype,var_name
0,1,object,ID
1,0,int64,LIMIT_BAL
0,0,object,SEX
0,0,object,EDUCATION
0,0,object,MARRIAGE
1,0,int64,AGE
1,0,int64,PAY_0
1,0,int64,PAY_2
1,0,int64,PAY_3
1,0,int64,PAY_4
1,0,int64,PAY_5
1,0,int64,PAY_6
1,0,int64,BILL_AMT1
1,0,int64,BILL_AMT2
1,0,int64,BILL_AMT3
1,0,int64,BILL_AMT4
1,0,int64,BILL_AMT5
1,0,int64,BILL_AMT6
1,0,int64,PAY_AMT1
1,0,int64,PAY_AMT2
1,0,int64,PAY_AMT3
1,0,int64,PAY_AMT4
1,0,int64,PAY_AMT5
1,0,int64,PAY_AMT6
0,1,int64,target
10 changes: 0 additions & 10 deletions f_conf/pima indians.conf

This file was deleted.

156 changes: 121 additions & 35 deletions result/woe_rule.csv
Original file line number Diff line number Diff line change
@@ -1,36 +1,122 @@
var_name,split_left,split_right,sub_sample_cnt,sub_sample_bad_cnt,sub_sample_good_cnt,woe,iv,iv_sum
2-Hour serum insulin (mu U/ml),-inf,14.2200,375,139,236,0.0943,0.0044,0.3789
2-Hour serum insulin (mu U/ml),14.2200,123.7400,193,28,165,-1.1501,0.2594,0.3789
2-Hour serum insulin (mu U/ml),123.7400,inf,200,101,99,0.6436,0.1151,0.3789
Age,-inf,23.0000,135,16,119,-1.3829,0.2466,0.5305
Age,23.0000,29.0000,232,55,177,-0.5452,0.0811,0.5305
Age,29.0000,41.0000,207,95,112,0.4590,0.0599,0.5305
Age,41.0000,inf,194,102,92,0.7268,0.1429,0.5305
Body mass index (weight in kg/(height in m)^2),-inf,26.4000,167,14,153,-1.7678,0.4486,0.6388
Body mass index (weight in kg/(height in m)^2),26.4000,29.9000,124,33,91,-0.3907,0.0230,0.6388
Body mass index (weight in kg/(height in m)^2),29.9000,33.1000,138,64,74,0.4784,0.0434,0.6388
Body mass index (weight in kg/(height in m)^2),33.1000,37.8000,184,77,107,0.2946,0.0216,0.6388
Body mass index (weight in kg/(height in m)^2),37.8000,inf,155,80,75,0.6882,0.1022,0.6388
Diabetes pedigree function,-inf,0.2072,143,30,113,-0.7026,0.0801,0.1873
Diabetes pedigree function,0.2072,0.2800,127,47,80,0.0917,0.0014,0.1873
Diabetes pedigree function,0.2800,0.5008,221,65,156,-0.2518,0.0175,0.1873
Diabetes pedigree function,0.5008,0.6600,104,41,63,0.1941,0.0052,0.1873
Diabetes pedigree function,0.6600,inf,173,85,88,0.5889,0.0831,0.1873
Diastolic blood pressure (mm Hg),-inf,55.0000,86,29,57,-0.0521,0.0003,0.1271
Diastolic blood pressure (mm Hg),55.0000,70.0000,232,57,175,-0.4981,0.0684,0.1271
Diastolic blood pressure (mm Hg),70.0000,74.0000,101,39,62,0.1600,0.0034,0.1271
Diastolic blood pressure (mm Hg),74.0000,82.0000,184,66,118,0.0426,0.0004,0.1271
Diastolic blood pressure (mm Hg),82.0000,inf,165,77,88,0.4901,0.0546,0.1271
Number of times pregnant,-inf,1.0000,111,38,73,-0.0293,0.0001,0.3315
Number of times pregnant,1.0000,3.0000,238,48,190,-0.7522,0.1511,0.3315
Number of times pregnant,3.0000,7.0000,250,87,163,-0.0042,0.0000,0.3315
Number of times pregnant,7.0000,inf,169,95,74,0.8734,0.1803,0.3315
Plasma glucose concentration a 2 hours in an oral glucose tolerance test,-inf,100.0000,197,16,181,-1.8023,0.5448,1.2078
Plasma glucose concentration a 2 hours in an oral glucose tolerance test,100.0000,109.0000,105,23,82,-0.6476,0.0506,1.2078
Plasma glucose concentration a 2 hours in an oral glucose tolerance test,109.0000,128.0000,183,55,128,-0.2211,0.0112,1.2078
Plasma glucose concentration a 2 hours in an oral glucose tolerance test,128.0000,145.0000,114,52,62,0.4477,0.0314,1.2078
Plasma glucose concentration a 2 hours in an oral glucose tolerance test,145.0000,inf,169,122,47,1.5775,0.5698,1.2078
Triceps skin fold thickness (mm),-inf,8.0000,229,89,140,0.1706,0.0089,0.2828
Triceps skin fold thickness (mm),8.0000,22.0000,132,18,114,-1.2222,0.1966,0.2828
Triceps skin fold thickness (mm),22.0000,32.0000,188,59,129,-0.1587,0.0060,0.2828
Triceps skin fold thickness (mm),32.0000,inf,219,102,117,0.4864,0.0713,0.2828
AGE,-inf,25.0000,3871,1032,2839,0.2467,0.0084,0.0217
AGE,25.0000,28.0000,4142,852,3290,-0.0924,0.0011,0.0217
AGE,28.0000,32.0000,5375,1041,4334,-0.1676,0.0048,0.0217
AGE,32.0000,35.0000,3421,672,2749,-0.1500,0.0025,0.0217
AGE,35.0000,45.0000,8522,1861,6661,-0.0165,0.0001,0.0217
AGE,45.0000,inf,4669,1178,3491,0.1723,0.0048,0.0217
BILL_AMT1,-inf,780.0000,4469,1104,3365,0.1442,0.0032,0.0158
BILL_AMT1,780.0000,5121.3000,4001,802,3199,-0.1248,0.0020,0.0158
BILL_AMT1,5121.3000,12545.2000,3273,708,2565,-0.0286,0.0001,0.0158
BILL_AMT1,12545.2000,34102.5600,5832,1461,4371,0.1628,0.0054,0.0158
BILL_AMT1,34102.5600,52204.9000,3425,750,2675,-0.0129,0.0000,0.0158
BILL_AMT1,52204.9000,90884.8800,3510,746,2764,-0.0510,0.0003,0.0158
BILL_AMT1,90884.8800,inf,5490,1065,4425,-0.1656,0.0048,0.0158
BILL_AMT2,-inf,0.0000,3175,744,2431,0.0747,0.0006,0.0139
BILL_AMT2,0.0000,2530.0000,3973,895,3078,0.0235,0.0001,0.0139
BILL_AMT2,2530.0000,8026.7700,3061,579,2482,-0.1968,0.0037,0.0139
BILL_AMT2,8026.7700,16828.8000,3115,737,2378,0.0873,0.0008,0.0139
BILL_AMT2,16828.8000,34763.0000,4673,1176,3497,0.1689,0.0047,0.0139
BILL_AMT2,34763.0000,51046.6000,3106,689,2417,0.0036,0.0000,0.0139
BILL_AMT2,51046.6000,92998.5500,3797,817,2980,-0.0354,0.0002,0.0139
BILL_AMT2,92998.5500,inf,5100,999,4101,-0.1535,0.0038,0.0139
BILL_AMT3,-inf,390.0000,4583,1080,3503,0.0820,0.0011,0.0129
BILL_AMT3,390.0000,7543.1600,5497,1088,4409,-0.1406,0.0035,0.0129
BILL_AMT3,7543.1600,18886.0000,4316,1012,3304,0.0755,0.0008,0.0129
BILL_AMT3,18886.0000,35891.0200,4314,1088,3226,0.1718,0.0044,0.0129
BILL_AMT3,35891.0200,76777.4000,5290,1168,4122,-0.0024,0.0000,0.0129
BILL_AMT3,76777.4000,inf,6000,1200,4800,-0.1276,0.0031,0.0129
BILL_AMT4,-inf,671.8000,5381,1274,4107,0.0882,0.0014,0.0170
BILL_AMT4,671.8000,7660.0000,5006,952,4054,-0.1902,0.0057,0.0170
BILL_AMT4,7660.0000,15516.0000,3066,664,2402,-0.0271,0.0001,0.0170
BILL_AMT4,15516.0000,22985.0000,3038,796,2242,0.2232,0.0054,0.0170
BILL_AMT4,22985.0000,35322.6500,3038,742,2296,0.1291,0.0017,0.0170
BILL_AMT4,35322.6500,57583.0000,3272,732,2540,0.0145,0.0000,0.0170
BILL_AMT4,57583.0000,101181.6400,3312,708,2604,-0.0437,0.0002,0.0170
BILL_AMT4,101181.6400,inf,3887,768,3119,-0.1428,0.0025,0.0170
BILL_AMT5,-inf,390.0000,5190,1251,3939,0.1117,0.0022,0.0200
BILL_AMT5,390.0000,2500.0000,3065,631,2434,-0.0913,0.0008,0.0200
BILL_AMT5,2500.0000,12429.0000,4742,884,3858,-0.2148,0.0069,0.0200
BILL_AMT5,12429.0000,23471.8600,4215,1068,3147,0.1780,0.0047,0.0200
BILL_AMT5,23471.8600,52319.9600,5588,1341,4247,0.1059,0.0022,0.0200
BILL_AMT5,52319.9600,93441.2000,3168,618,2550,-0.1587,0.0025,0.0200
BILL_AMT5,93441.2000,inf,4032,843,3189,-0.0718,0.0007,0.0200
BILL_AMT6,-inf,398.5700,5805,1343,4462,0.0580,0.0007,0.0187
BILL_AMT6,398.5700,2652.7000,3155,652,2503,-0.0865,0.0008,0.0187
BILL_AMT6,2652.7000,12252.2000,4540,843,3697,-0.2196,0.0069,0.0187
BILL_AMT6,12252.2000,22640.8400,3856,994,2862,0.2011,0.0055,0.0187
BILL_AMT6,22640.8400,51296.7300,5549,1344,4205,0.1181,0.0027,0.0187
BILL_AMT6,51296.7300,102998.0400,3689,770,2919,-0.0739,0.0007,0.0187
BILL_AMT6,102998.0400,inf,3406,690,2716,-0.1115,0.0014,0.0187
LIMIT_BAL,-inf,40000.0000,4311,1555,2756,0.6864,0.0799,0.1781
LIMIT_BAL,40000.0000,70000.0000,4921,1328,3593,0.2634,0.0122,0.1781
LIMIT_BAL,70000.0000,140000.0000,6058,1439,4619,0.0925,0.0018,0.1781
LIMIT_BAL,140000.0000,200000.0000,5088,897,4191,-0.2830,0.0125,0.1781
LIMIT_BAL,200000.0000,260000.0000,3426,567,2859,-0.3592,0.0133,0.1781
LIMIT_BAL,260000.0000,inf,6196,850,5346,-0.5802,0.0584,0.1781
PAY_0,-inf,-1.0000,8445,1319,7126,-0.4282,0.0455,0.8694
PAY_0,-1.0000,0.0000,14737,1888,12849,-0.6591,0.1749,0.8694
PAY_0,0.0000,1.0000,3688,1252,2436,0.5931,0.0501,0.8694
PAY_0,1.0000,inf,3130,2177,953,2.0848,0.5989,0.8694
PAY_2,-inf,-2.0000,3782,691,3091,-0.2394,0.0067,0.5469
PAY_2,-2.0000,-1.0000,6050,966,5084,-0.4020,0.0290,0.5469
PAY_2,-1.0000,1.0000,15758,2508,13250,-0.4058,0.0768,0.5469
PAY_2,1.0000,inf,4410,2471,1939,1.5011,0.4344,0.5469
PAY_3,-inf,-2.0000,4085,757,3328,-0.2221,0.0063,0.4124
PAY_3,-2.0000,-1.0000,5938,926,5012,-0.4300,0.0322,0.4124
PAY_3,-1.0000,1.0000,15768,2752,13016,-0.2952,0.0420,0.4124
PAY_3,1.0000,inf,4209,2201,2008,1.3505,0.3319,0.4124
PAY_4,-inf,-2.0000,4348,837,3511,-0.1751,0.0042,0.3592
PAY_4,-2.0000,-1.0000,5687,904,4783,-0.4073,0.0279,0.3592
PAY_4,-1.0000,0.0000,16455,3016,13439,-0.2355,0.0284,0.3592
PAY_4,0.0000,inf,3510,1879,1631,1.4002,0.2987,0.3592
PAY_5,-inf,-2.0000,4546,895,3651,-0.1472,0.0032,0.0382
PAY_5,-2.0000,-1.0000,5539,897,4642,-0.3852,0.0245,0.0382
PAY_5,-1.0000,inf,19915,4844,15071,0.1237,0.0105,0.0382
PAY_6,-inf,-2.0000,4895,981,3914,-0.1251,0.0025,0.2852
PAY_6,-2.0000,-1.0000,5740,975,4765,-0.3279,0.0187,0.2852
PAY_6,-1.0000,0.0000,16286,3069,13217,-0.2015,0.0208,0.2852
PAY_6,0.0000,inf,3079,1611,1468,1.3516,0.2432,0.2852
PAY_AMT1,-inf,17.0000,5404,1938,3466,0.6773,0.0973,0.1796
PAY_AMT1,17.0000,1450.0000,4688,1024,3664,-0.0162,0.0000,0.1796
PAY_AMT1,1450.0000,2000.0000,4323,1010,3313,0.0708,0.0007,0.1796
PAY_AMT1,2000.0000,3006.9200,3755,788,2967,-0.0671,0.0006,0.1796
PAY_AMT1,3006.9200,4878.2000,3467,719,2748,-0.0821,0.0008,0.1796
PAY_AMT1,4878.2000,9500.0000,4613,699,3914,-0.4640,0.0289,0.1796
PAY_AMT1,9500.0000,inf,3750,458,3292,-0.7137,0.0513,0.1796
PAY_AMT2,-inf,100.0000,5696,1895,3801,0.5626,0.0691,0.1550
PAY_AMT2,100.0000,1157.0000,3272,743,2529,0.0338,0.0001,0.1550
PAY_AMT2,1157.0000,1600.0000,3140,791,2349,0.1702,0.0032,0.1550
PAY_AMT2,1600.0000,2100.0000,3347,723,2624,-0.0304,0.0001,0.1550
PAY_AMT2,2100.0000,3049.8800,3351,691,2660,-0.0893,0.0009,0.1550
PAY_AMT2,3049.8800,4819.8100,3094,662,2432,-0.0425,0.0002,0.1550
PAY_AMT2,4819.8100,9676.1500,4455,720,3735,-0.3876,0.0199,0.1550
PAY_AMT2,9676.1500,inf,3645,411,3234,-0.8042,0.0615,0.1550
PAY_AMT3,-inf,0.0000,5968,1931,4037,0.5212,0.0616,0.1290
PAY_AMT3,0.0000,1074.0000,5227,1192,4035,0.0393,0.0003,0.1290
PAY_AMT3,1074.0000,1600.0000,3060,732,2328,0.1017,0.0011,0.1290
PAY_AMT3,1600.0000,2906.1800,4647,1005,3642,-0.0289,0.0001,0.1290
PAY_AMT3,2906.1800,4574.9500,3648,698,2950,-0.1827,0.0039,0.1290
PAY_AMT3,4574.9500,9000.0000,3995,646,3349,-0.3869,0.0178,0.1290
PAY_AMT3,9000.0000,inf,3455,432,3023,-0.6869,0.0442,0.1290
PAY_AMT4,-inf,0.0000,6408,1993,4415,0.4633,0.0516,0.1094
PAY_AMT4,0.0000,640.2600,3276,709,2567,-0.0280,0.0001,0.1094
PAY_AMT4,640.2600,1000.0000,3098,756,2342,0.1280,0.0018,0.1094
PAY_AMT4,1000.0000,2005.0000,4921,1130,3791,0.0483,0.0004,0.1094
PAY_AMT4,2005.0000,4000.0000,4761,913,3848,-0.1799,0.0049,0.1094
PAY_AMT4,4000.0000,9509.0000,4522,727,3795,-0.3938,0.0208,0.1094
PAY_AMT4,9509.0000,inf,3014,408,2606,-0.5956,0.0298,0.1094
PAY_AMT5,-inf,0.0000,6703,1970,4733,0.3822,0.0360,0.0905
PAY_AMT5,0.0000,700.0000,3437,811,2626,0.0837,0.0008,0.0905
PAY_AMT5,700.0000,1297.0000,3866,875,2991,0.0295,0.0001,0.0905
PAY_AMT5,1297.0000,2000.0000,3595,853,2742,0.0910,0.0010,0.0905
PAY_AMT5,2000.0000,4322.4400,5208,1029,4179,-0.1428,0.0034,0.0905
PAY_AMT5,4322.4400,9038.0000,4092,700,3392,-0.3194,0.0127,0.0905
PAY_AMT5,9038.0000,inf,3099,398,2701,-0.6562,0.0365,0.0905
PAY_AMT6,-inf,0.0000,7173,2078,5095,0.3618,0.0344,0.0975
PAY_AMT6,0.0000,900.0000,4243,1051,3192,0.1478,0.0032,0.0975
PAY_AMT6,900.0000,1390.6200,3106,672,2434,-0.0283,0.0001,0.0975
PAY_AMT6,1390.6200,2000.0000,3233,777,2456,0.1078,0.0013,0.0975
PAY_AMT6,2000.0000,4000.0000,4762,947,3815,-0.1347,0.0028,0.0975
PAY_AMT6,4000.0000,8000.0000,4004,660,3344,-0.3640,0.0159,0.0975
PAY_AMT6,8000.0000,inf,3479,451,3028,-0.6455,0.0398,0.0975
Loading

0 comments on commit a525f6a

Please sign in to comment.