Skip to content

Commit

Permalink
Merge branch 'development' into approximate-conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Sep 30, 2020
2 parents 0c93a65 + 3ceadf7 commit c75a663
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/boomer/common/cpp/statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class AbstractStatistics : virtual public IMatrix {
* rule.
*
* @param statisticIndex The index of the statistic to be updated
* @param head A pointer to an object of type `Prediction`, representing the predictions of the
* @param prediction A pointer to an object of type `Prediction`, representing the predictions of the
* newly induced rule
*/
virtual void applyPrediction(uint32 statisticIndex, Prediction* prediction) = 0;
Expand Down
9 changes: 5 additions & 4 deletions python/boomer/common/rule_induction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,9 @@ cdef inline void __recalculate_predictions(AbstractStatistics* statistics, uint3
for r in range(num_statistics):
if covered_statistics_mask[r] == covered_statistics_target:
statistics_subset_ptr.get().addToSubset(r, 1)
prediction = head_refinement.calculatePrediction(statistics_subset_ptr.get(), False, False)
updated_scores = prediction.predictedScores_

for c in range(num_predictions):
predicted_scores[c] = updated_scores[c]
prediction = head_refinement.calculatePrediction(statistics_subset_ptr.get(), False, False)
updated_scores = prediction.predictedScores_

for c in range(num_predictions):
predicted_scores[c] = updated_scores[c]

0 comments on commit c75a663

Please sign in to comment.