shgidi
5/7/2017 - 8:44 AM

This is generic XGBoost

This is generic XGBoost

import xgboost as xgb

clf = xgb.XGBClassifier(max_depth=10, n_estimators=1500,min_child_weight=9,learning_rate=0.01,
                       nthread=8, subsample=0.80,colsample_bytree=0.80,seed=4242)


clf.fit(trn , y,eval_set=[(val, y_val)], eval_metric='mlogloss', verbose=True, early_stopping_rounds=50)
#multiclass logloss