Skip to content
Snippets Groups Projects
Commit 432705f8 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Allowed one classifier for all views in late fusion

parent 86f936d8
No related branches found
No related tags found
No related merge requests found
......@@ -137,11 +137,15 @@ class LateFusionClassifier(BaseMultiviewClassifier, BaseFusionClassifier):
nb_clfs = nb_monoview_per_view
else:
nb_clfs = nb_view
if isinstance(self.classifiers_names, ClassifierDistribution):
self.classifiers_names = self.classifiers_names.draw(nb_clfs,
self.rs)
elif self.classifiers_names is None:
self.classifiers_names = ["decision_tree" for _ in range(nb_clfs)]
elif isinstance(self.classifiers_names, str):
self.classifiers_names = [self.classifiers_names
for _ in range(nb_clfs)]
if isinstance(self.classifier_configs, ConfigDistribution):
self.classifier_configs = self.classifier_configs.draw(nb_clfs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment