I'm trying to run ROC auc, the code is:
actuals = gs.predict(feature_set)
probas = gs.predict_proba(feature_set)
plt.plot(roc_curve(data[['Won_YES']], probas[:,1])[0],
roc_curve(data[['Won_YES']], probas[:,1])[1])
Won_YES is the Y variable and has both '1' and '0' values. It was sorted by value, so I used data['Won_YES'].sample(frac=0.1, replace=True) to apply a random order. So not sure what else could be missing.
This is the error I get: ValueError: Only one class present in y_true. ROC AUC score is not defined in that case.