Skip to content
Snippets Groups Projects

clean scripts

Merged Charly Lamothe requested to merge wip_clean_scripts into master
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -98,8 +98,7 @@ class OmpForestMulticlassClassifier(OmpForest):
predictions = self.predict(X)
if metric == 'indicator':
# todo corriger bug ici
evaluation = np.abs(np.mean(np.abs(np.sign(predictions) - y) - 1))
evaluation = np.sum(np.ones_like(predictions)[predictions == y]) / X.shape[0]
else:
raise ValueError("Unsupported metric '{}'.".format(metric))
Loading