Skip to content

Commit

Permalink
Fix sample_count
Browse files Browse the repository at this point in the history
Co-Authored-By: gilbertoolimpio <[email protected]>
  • Loading branch information
jacobmontiel and giba0 authored Nov 8, 2018
1 parent c127c25 commit 79ebd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skmultiflow/metrics/measure_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_result(self, y_true, y_pred, weight=1.0):
true_y = self._get_target_index(y_true, True)
pred = self._get_target_index(y_pred, True)
self.confusion_matrix.update(true_y, pred)
self.sample_count += weight
self.sample_count += 1

if self.get_majority_class() == y_true:
self.majority_classifier += weight
Expand Down

0 comments on commit 79ebd8a

Please sign in to comment.