Skip to content

Commit 265b034

Browse files
committed
merge conflict bug resolved
1 parent 094772c commit 265b034

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

openml/runs/functions.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def run_task(task, model, avoid_duplicate_runs=True, flow_tags=None):
7373
run = OpenMLRun(task_id=task.task_id, flow_id=None, dataset_id=dataset.dataset_id, model=model, tags=tags)
7474
run.data_content, run.trace_content, run.trace_attributes = _run_task_get_arffcontent(model, task, class_labels)
7575

76-
7776
if flow_id == False:
7877
# means the flow did not exists. As we could run it, publish it now
7978
flow = flow.publish()
@@ -172,12 +171,6 @@ def _run_task_get_arffcontent(model, task, class_labels):
172171

173172
try:
174173
model_fold.fit(trainX, trainY)
175-
176-
if isinstance(model_fold, sklearn.model_selection._search.BaseSearchCV):
177-
arff_tracecontent.extend(_extract_arfftrace(model_fold, rep_no, fold_no))
178-
model_classes = model_fold.best_estimator_.classes_
179-
else:
180-
model_classes = model_fold.classes_
181174
except AttributeError as e:
182175
# typically happens when training a regressor on classification task
183176
raise PyOpenMLError(str(e))

0 commit comments

Comments
 (0)