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

Saved mumbo's view importances

parent 9ea3ed25
Branches
Tags
No related merge requests found
...@@ -86,6 +86,8 @@ class Mumbo(BaseMultiviewClassifier, MumboClassifier): ...@@ -86,6 +86,8 @@ class Mumbo(BaseMultiviewClassifier, MumboClassifier):
for best_view, estimator_weight in zip(self.best_views_, self.estimator_weights_): for best_view, estimator_weight in zip(self.best_views_, self.estimator_weights_):
self.view_importances[best_view] += estimator_weight self.view_importances[best_view] += estimator_weight
self.view_importances /= np.sum(self.view_importances) self.view_importances /= np.sum(self.view_importances)
np.savetxt(directory+"view_importances.csv", self.view_importances,
delimiter=',')
sorted_view_indices = np.argsort(-self.view_importances) sorted_view_indices = np.argsort(-self.view_importances)
interpret_string = "Mumbo used {} iterations to converge.".format(self.best_views_.shape[0]) interpret_string = "Mumbo used {} iterations to converge.".format(self.best_views_.shape[0])
interpret_string+= "\n\nViews importance : \n" interpret_string+= "\n\nViews importance : \n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment