To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 2cf82faa authored by Feliks Kiszkurno's avatar Feliks Kiszkurno
Browse files

Fixed problem with missing sample_wieght in MeanShift, now it will be executed without it

parent fc1211e7
......@@ -168,6 +168,13 @@ def classification_train(test_training, test_results, clf, clf_name):
clf_pipeline.fit(x_train, y_train)
except TypeError:
clf_pipeline.fit(x_train, y_train, scoring="accuracy")
except AttributeError:
try:
print('No support for sample_weight... running classifier without it!')
clf_pipeline.fit(x_train, y_train)
except TypeError:
print('No support for sample_weight... running classifier without it!')
clf_pipeline.fit(x_train, y_train, scoring="accuracy")
else:
clf_pipeline.fit(x_train, y_train)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment