Prediction - chaoyue520/XGBoost GitHub Wiki

After you training a model and preparing the data, you can start to do prediction.

  bst.prediction(data_prob)

And if early stopping is enabled during training, you can predict with the best interaion.

  bst.prediction(data_prob , ntree_limit = bst.best_interation)