From bcc721b1c212fd93b5fbb190d986ddd8f4c7bee5 Mon Sep 17 00:00:00 2001 From: Baptiste Bauvin <baptiste.bauvin@lis-lab.fr> Date: Mon, 20 Jul 2020 08:56:42 -0400 Subject: [PATCH] Modifs pre change --- demo/config_demo.yml | 3 ++- multiview_generator/multiple_sub_problems.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/config_demo.yml b/demo/config_demo.yml index fdfeea3..ddfe994 100644 --- a/demo/config_demo.yml +++ b/demo/config_demo.yml @@ -1,7 +1,8 @@ n_views: 4 n_classes: 3 error_matrix: - - [0.4, 0.4, 0.4, 0.4] + - + -[ - [0.55, 0.4, 0.4, 0.4] - [0.4, 0.5, 0.52, 0.55] n_samples: 2000 diff --git a/multiview_generator/multiple_sub_problems.py b/multiview_generator/multiple_sub_problems.py index e92c8ca..5d017c5 100644 --- a/multiview_generator/multiple_sub_problems.py +++ b/multiview_generator/multiple_sub_problems.py @@ -429,6 +429,8 @@ class MultiViewSubProblemsGenerator: else: for class_index, complementarity in enumerate(self.complementarity): n_comp = int(self.complementarity_level[class_index]*self.n_views) + print(self.n_views) + print(int(self.complementarity_level[class_index]*self.n_views)) self.complementarity_examples[class_index] = self.rs.choice( self.available_init_indices[class_index], size=int(self.n_examples_per_class[ @@ -461,7 +463,7 @@ class MultiViewSubProblemsGenerator: def _gen_example_indices(self, ): """ - Selects examples accordin to their role (redundancy, ....) and then + Selects examples according to their role (redundancy, ....) and then affects more error if needed according to the input confusion matrix) """ -- GitLab