Skip to content

Commit afc3674

Browse files
committed
same as previous
1 parent 30840fd commit afc3674

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

openml/runs/functions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def _run_task_get_arffcontent(model, task, class_labels):
160160
try:
161161
model_fold.fit(trainX, trainY)
162162

163-
if get_traceble_model(model_fold):
164-
arff_tracecontent.extend(_extract_arfftrace(model_fold, rep_no, fold_no))
163+
traceable_model = get_traceble_model(model)
164+
if traceable_model:
165+
arff_tracecontent.extend(_extract_arfftrace(traceable_model, rep_no, fold_no))
165166
model_classes = model_fold.best_estimator_.classes_
166167
else:
167168
model_classes = model_fold.classes_
@@ -180,7 +181,7 @@ def _run_task_get_arffcontent(model, task, class_labels):
180181

181182
fold_no = fold_no + 1
182183
rep_no = rep_no + 1
183-
184+
184185
traceable_model = get_traceble_model(model)
185186
if traceable_model:
186187
# arff_tracecontent is already set

0 commit comments

Comments
 (0)