Skip to content

Commit ae2362b

Browse files
committed
numpy result
1 parent 1c285a8 commit ae2362b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openml/runs/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import sys
44
import time
5+
import numpy as np
56

67
import arff
78
import xmltodict
@@ -181,7 +182,7 @@ def _attribute_list_to_dict(attribute_list):
181182
y_pred = values_predict[rep][fold][last_sample]
182183
y_true = values_correct[rep][fold][last_sample]
183184
scores.append(sklearn_fn(y_true, y_pred, **kwargs))
184-
return scores
185+
return np.array(scores)
185186

186187
def publish(self):
187188
"""Publish a run to the OpenML server.

0 commit comments

Comments
 (0)