Skip to content

Commit

Permalink
Merge pull request #14 from KDD-OpenSource/red-bug
Browse files Browse the repository at this point in the history
fixed redundancy update bug
  • Loading branch information
marcuspappik authored Apr 25, 2017
2 parents 806ee7a + 7e2d2bd commit 7fdd024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hics/incremental_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _update_redundancy_table(self, new_weights, new_redundancies):
current_redundancies.fillna(0, inplace = True)
current_weights += new_weights

self.result_storage.update_redundancies(current_redundancies)
self.result_storage.update_redundancies(current_redundancies, current_weights)

def _update_slices(self, new_slices):
current_slices = self.result_storage.get_slices()
Expand Down Expand Up @@ -145,7 +145,7 @@ def update_redundancies(self, k = 5, runs = 10):
new_redundancies = new_redundancies / new_weights
new_redundancies.fillna(0, inplace = True)

self.result_storage.update_redundancies(new_redundancies, new_weights)
self._update_redundancy_table(new_weights, new_redundancies)



0 comments on commit 7fdd024

Please sign in to comment.