Commit bcc721b1 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Modifs pre change

parent 4e11c380
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
......
......@@ -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)
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment