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

Removed weights

parent 7eac7557
Branches
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ class DiversityFusionClass:
votes = np.zeros((len(usedIndices), self.nbClass), dtype=float)
for usedIndex, exampleIndex in enumerate(usedIndices):
for monoviewDecisionIndex, monoviewDecision in enumerate(self.monoviewDecisions):
votes[usedIndex, monoviewDecision[exampleIndex]] += self.weights[monoviewDecisionIndex]
votes[usedIndex, monoviewDecision[exampleIndex]] += 1#self.weights[monoviewDecisionIndex]
predictedLabels = np.argmax(votes, axis=1)
return predictedLabels
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment