Skip to content

Latest commit

 

History

History
287 lines (258 loc) · 8.16 KB

2015-04-09.md

File metadata and controls

287 lines (258 loc) · 8.16 KB

模型13 **

best score 0.277911933541
best parms {'C': 0.59948425031894093}
clf parms (61 features):
intercept       0.000000
user_action_count       -0.491116
user_lastday_count      -0.022572
user_buy_count  0.392326
item_click_count        -0.171296
item_lastday_count      0.059388
item_buy_count  0.132760
cat_click_count -0.506082
cat_buy_count   0.686278
user_cat_lastday_count  0.202954
user_item_count 3.597955
user_item_lastday_count 0.353435
user_add_car    -0.118741
user_add_star   0.082923
item_added_car  0.182609
item_added_start        -0.035964
user_item_lasttime      -0.009733
cat_add_car     -0.198940
user_item_buy   -0.340634
user_item_before_halfmonth_click        -2.052562
user_item_before_halfmonth_star -0.244675
user_item_before_halfmonth_add_car      -0.390749
user_item_before_halfmonth_buy  -0.272889
user_cat_before_halfmonth_click -0.138777
user_cat_before_halfmonth_star  -0.013752
user_cat_before_halfmonth_add_car       0.022383
user_cat_before_halfmonth_buy   0.031285
user_lastday_add_star   0.005999
user_cat_lastday_add_star       -0.115051
user_lastday_add_cart   0.042595
user_item_lastday_add_cart      0.258971
user_cat_lastday_add_cart       -0.077284
user_lastday_buy        -0.128976
user_item_lastday_buy   -0.652401
user_cat_lastday_buy    -0.067075
geo_users_number        -0.133313
user_item_click_nobuy   0.079047
user_item_cart_nobuy    0.272405
user_item_buy_again     0.707373
user_geo_f      -0.323997
user_geo_9      0.571108
user_geo_t      -0.265629
user_in_hot_pos_1       -0.384582
user_in_hot_pos_4       -0.114124
user_in_hot_pos_5       0.236532
user_in_hot_pos_6       -0.090071
user_cat_aveThreeDayDelta_click -0.035063
user_cat_aveThreeDayDelta_star  0.021412
user_cat_aveThreeDayDelta_add_car       -0.136000
user_cat_aveThreeDayDelta_buy   0.850714
user_item_aveThreeDayDelta_click        -0.609260
user_item_aveThreeDayDelta_star -0.404116
user_item_aveThreeDayDelta_add_car      -0.883005
user_item_aveThreeDayDelta_buy  0.062509
usergeo_item_lastday_click      -0.006038
usergeo_item_lastday_star       0.036551
usergeo_item_lastday_cart       0.089241
usergeo_item_lastday_buy        -0.002701
usergeo_item_before_lastday_click       0.057396
usergeo_item_before_lastday_star        0.008312
usergeo_item_before_lastday_cart        -0.035177
usergeo_item_before_lastday_buy -0.016065


F1      P       R
29.21   57.46   19.58

		F       T
N       123062  97
P       538     131


===== for train =====
		F       T
N       --      2277
P       1802    131

F1      P       R
6.04    5.44    6.78
===== for test =====
		F       T
N       --      1449
P       1220    99

F1      P       R
6.91    6.40    7.51

===== for online test =====
		F       T
N       --      233
P       179     13

F1      P       R
5.94    5.28    6.77

13.2

best score 0.312886235064
best parms {'C': 12.915496650148826}
clf parms (107 features):
intercept       0.000000
user_action_count       -0.473741
user_lastday_count      -0.028676
user_buy_count  0.410224
item_click_count        -0.209853
item_lastday_count      0.050654
item_buy_count  0.240809
cat_click_count -0.552834
cat_buy_count   0.678239
user_cat_count  -0.074405
user_cat_lastday_count  0.277196
user_item_count 4.274146
user_item_lastday_count -0.474213
user_add_car    -0.131077
user_add_star   0.086025
item_added_car  0.192027
item_added_start        -0.053648
user_item_lasttime      0.022611
cat_add_car     -0.175384
cat_add_star    0.034224
user_item_buy   -0.291233
user_item_lastweek_click        0.000000
user_item_lastweek_star 0.000000
user_item_lastweek_add_car      -0.060096
user_item_lastweek_buy  0.000000
user_item_halfmonth_click       0.000000
user_item_halfmonth_star        -0.018854
user_item_halfmonth_add_car     -0.054151
user_item_halfmonth_buy 0.000000
user_item_before_halfmonth_click        -2.480688
user_item_before_halfmonth_star -0.994136
user_item_before_halfmonth_add_car      -0.670228
user_item_before_halfmonth_buy  -0.340812
user_cat_lastweek_click -0.033765
user_cat_lastweek_star  0.000000
user_cat_lastweek_add_car       -0.005256
user_cat_lastweek_buy   0.000000
user_cat_halfmonth_click        0.000000
user_cat_halfmonth_star 0.042589
user_cat_halfmonth_add_car      0.000000
user_cat_halfmonth_buy  -0.212289
user_cat_before_halfmonth_click -0.087891
user_cat_before_halfmonth_star  0.005812
user_cat_before_halfmonth_add_car       0.038832
user_cat_before_halfmonth_buy   0.035693
user_lastday_add_star   -0.000834
user_item_lastday_add_star      -1.010118
user_cat_lastday_add_star       0.033509
user_lastday_add_cart   0.035057
user_item_lastday_add_cart      -0.967920
user_cat_lastday_add_cart       -0.279977
user_lastday_buy        -0.120600
user_item_lastday_buy   1.549140
user_cat_lastday_buy    -0.109283
geo_users_number        -0.258396
user_item_lastday_click_nobuy   1.387573
user_item_lastday_star_nobuy    1.435649
user_item_lastday_cart_nobuy    1.581553
user_item_lastday_buy_again     -0.626029
user_cat_lastday_click_nobuy    -0.215487
user_cat_lastday_star_nobuy     -0.384804
user_cat_lastday_cart_nobuy     0.208286
user_cat_lastday_buy_again      -0.108575
item_convert_rate       -2.284492
user_convert_rate       0.000000
user_item_click_nobuy   0.100066
user_item_star_nobuy    0.881918
user_item_cart_nobuy    0.471652
user_item_buy_again     0.820131
user_geo_b      -1.588277
user_geo_f      -0.880851
user_geo_i      0.000000
user_geo_m      -0.568337
user_geo_o      -0.361864
user_geo_5      0.000000
user_geo_4      -0.572975
user_geo_v      0.000000
user_geo_9      0.387018
user_geo_t      -1.734773
item_geo_9      0.775584
item_geo_4      0.000000
item_geo_m      0.000000
item_geo_t      0.000000
item_geo_f      0.000000
user_item_geo_distance  0.413331
user_in_hot_pos_1       -0.589134
user_in_hot_pos_2       0.374323
user_in_hot_pos_3       -0.111559
user_in_hot_pos_4       -0.119732
user_in_hot_pos_5       0.474884
user_in_hot_pos_6       -0.196942
user_in_hot_pos_7       -0.430408
user_cat_aveThreeDayDelta_click -0.024095
user_cat_aveThreeDayDelta_star  0.048577
user_cat_aveThreeDayDelta_add_car       -0.177515
user_cat_aveThreeDayDelta_buy   0.873860
user_item_aveThreeDayDelta_click        -0.635569
user_item_aveThreeDayDelta_star -0.507749
user_item_aveThreeDayDelta_add_car      -0.853999
user_item_aveThreeDayDelta_buy  0.084708
usergeo_item_lastday_click      -0.010553
usergeo_item_lastday_star       -0.004316
usergeo_item_lastday_cart       0.080044
usergeo_item_lastday_buy        0.073256
usergeo_item_before_lastday_click       0.057150
usergeo_item_before_lastday_star        0.030250
usergeo_item_before_lastday_cart        -0.015821
usergeo_item_before_lastday_buy -0.065877


F1      P       R
31.43   59.34   21.38

		F       T
N       123061  98
P       526     143


===== for train =====
		F       T
N       --      2314
P       1790    143

F1      P       R
6.51    5.82    7.40
===== for test =====
		F       T
N       --      1486
P       1216    103

F1      P       R
7.08    6.48    7.81

===== for online test =====
		F       T
N       --      239
P       182     10

F1      P       R
4.54    4.02    5.21

模型14

best score 0.321907470003
best parms {'rf__n_estimators': 100, 'rf__max_depth': 10, 'rf__min_samples_leaf
: 2, 'rf__max_features': 10}
Pipeline(steps=[('rf', RandomForestClassifier(bootstrap=True, class_weight=None
 criterion='gini',
			max_depth=10, max_features=10, max_leaf_nodes=None,
			min_samples_leaf=2, min_samples_split=2,
			min_weight_fraction_leaf=0.0, n_estimators=100, n_jobs=10,
			oob_score=False, random_state=None, verbose=0,
			warm_start=False))])
F1      P       R
56.99   99.63   39.91

		F       T
N       86261   1
P       402     267


===== for train =====
		F       T
N       --      1783
P       1666    267

F1      P       R
13.41   13.02   13.81
===== for test =====
		F       T
N       --      1215
P       1206    113

F1      P       R
8.54    8.51    8.57

===== for online test =====
		F       T
N       --      164
P       178     14

F1      P       R
7.57    7.87    7.29