SHARE
TWEET

Untitled

a guest Oct 14th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from xgboost import XGBClassifier
  2.  
  3. # Create a classifier
  4. xgb = XGBClassifier(booster='gbtree', objective='multi:softprob', random_state=42, eval_metric="auc", num_class=num_of_classes)
  5.  
  6. # Fit the classifier with the training data
  7. xgb.fit(X_train,y_train)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top