+1 vote
in Programming Languages by (8.1k points)
edited by

I am using scikit-learn's roc_auc_score() to compute AUC-ROC score. But this function is giving error : ValueError: Found input variables with inconsistent numbers of samples: [2666, 10]

Here is my code:

roc_auc_score(self.data.labels,self.predictions)

1 Answer

0 votes
by (15.8k points)

The size of self.data.labels is 2666 whereas the size of self.predictions is 10. Due to different size of two variables, you are getting the error. Look into your code to determine why the size of self.predictions is 10. Once you fix that, this error should not come.

...