Skip to content
Snippets Groups Projects
Commit 8b7fe366 authored by Charly Lamothe's avatar Charly Lamothe
Browse files

Fix _evaluate_predictions for SOTA classifiers

parent 87fb436c
No related branches found
No related tags found
1 merge request!23Resolve "integration-sota"
......@@ -155,7 +155,7 @@ class Trainer(object):
def _evaluate_predictions(self, model, X, aggregation_function):
if type(model) in [OmpForestRegressor, SimilarityForestRegressor, KMeansForestRegressor, EnsembleSelectionForestRegressor,
OmpForestBinaryClassifier, OmpForestMulticlassClassifier]:
OmpForestBinaryClassifier, OmpForestMulticlassClassifier, SimilarityForestClassifier, KMeansForestClassifier, EnsembleSelectionForestClassifier]:
estimators = model.forest
estimators = np.asarray(estimators)[model._omp.coef_ != 0]
elif type(model) in [RandomForestRegressor, RandomForestClassifier]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment