Skip to content

Commit

Permalink
add data floder
Browse files Browse the repository at this point in the history
  • Loading branch information
hengchao0248 committed Jan 15, 2017
1 parent 9a2c387 commit a4bbe3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ https://pan.baidu.com/s/1bpGIfxX
=======
如果觉得不错的话,欢迎大家点击右上角的star和fork,谢谢!

![](docs/队旗.jpg)
![](data/队旗.jpg)

File renamed without changes
4 changes: 2 additions & 2 deletions xgb_ens.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def xgb_acc_score(preds,dtrain):

'''最好的参数组合'''
#-------------------------education----------------------------------
TR = 80000
TR = 100000
df_sub = pd.DataFrame()
df_sub['Id'] = df_lb.iloc[TR:]['Id']
seed = 10
Expand Down Expand Up @@ -155,4 +155,4 @@ def xgb_acc_score(preds,dtrain):
df_sub['gender'] = np.argmax(bst.predict(dvalid),axis=1)+1

df_sub = df_sub[['Id','age','gender','Education']]
df_sub.to_csv(cfg.data_path + 'tfidf_dm_dbow_10W.csv',index=None,header=None,sep=' ')
df_sub.to_csv(cfg.data_path + 'tfidf_dm_dbow_20W.csv',index=None,header=None,sep=' ')

0 comments on commit a4bbe3b

Please sign in to comment.