I used to run xgboost using the following syntax:
from xgboost import XGBClassifier newxgb = XGBClassifier(#list of params) newxgb.fit(X_train,y_train)