Skip to content

Commit 704cb2d

Browse files
committed
added assertion, needs to be checked by sklearn
1 parent 39b2e38 commit 704cb2d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openml/runs/functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def _run_task_get_arffcontent(model, task, class_labels):
9292
PredY = model.predict(testX)
9393

9494
for i in range(0, len(test_indices)):
95+
assert(len(ProbaY[i]) == len(class_labels)), 'Predicted probabilities and available classes do not match. (sklearn bug?) '
9596
arff_line = [rep_no, fold_no, test_indices[i]]
9697
arff_line.extend(ProbaY[i])
9798
arff_line.append(class_labels[PredY[i]])

0 commit comments

Comments
 (0)