Skip to main content
edited tags
Link
Lucas Morin
  • 2.4k
  • 5
  • 23
  • 46

I am training and predicting on the same data set-set, but I want to perform 10 fold-fold cross validation-validation and predict on the left out fold and thus predict on the whole data set. How can I do this? Currently

The libraries which I am using from sklearn import cross_validation import xgboost as xgb are:

from sklearn import cross_validation
import xgboost as xgb

I am training and predicting on the same data set but I want to perform 10 fold cross validation and predict on the left out fold and thus predict on the whole data set. How can I do this? Currently I am using from sklearn import cross_validation import xgboost as xgb

I am training and predicting on the same data-set, but I want to perform 10-fold cross-validation and predict on the left out fold and thus predict on the whole data set. How can I do this?

The libraries which I am using are:

from sklearn import cross_validation
import xgboost as xgb
Source Link
Ved Gupta
  • 191
  • 1
  • 4

Is there a way of performing stratified cross validation using xgboost module in python?

I am training and predicting on the same data set but I want to perform 10 fold cross validation and predict on the left out fold and thus predict on the whole data set. How can I do this? Currently I am using from sklearn import cross_validation import xgboost as xgb