Skip to content

Commit

Permalink
Implemented basic structure of ApproximateRuleRefinementImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasEberle committed Oct 1, 2020
1 parent 99b6581 commit 860d38e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/boomer/common/cpp/rule_refinement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,17 @@ Refinement ExactRuleRefinementImpl::findRefinement(IHeadRefinement* headRefineme

return refinement;
}

ApproximateRuleRefinementImpl::ApproximateRuleRefinementImpl(AbstractStatistics* statistics, BinArray* binArray,
uint32 featureIndex) {
statistics_ = statistics;
binArray_ = binArray;
featureIndex_ = featureIndex;
}

Refinement ApproximateRuleRefinementImpl::findRefinement(IHeadRefinement* headRefinement,
PredictionCandidate* currentHead,
uint32 numLabelIndices, const uint32* labelIndices) {
Refinement refinement;
return refinement;
}
15 changes: 15 additions & 0 deletions python/boomer/common/cpp/rule_refinement.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,19 @@ class ExactRuleRefinementImpl : virtual public IRuleRefinement {

class ApproximateRuleRefinementImpl : virtual public IRuleRefinement {

private:

AbstractStatistics* statistics_;

BinArray* binArray_;

uint32 featureIndex_;

public:

ApproximateRuleRefinementImpl(AbstractStatistics* statistics, BinArray* binArray, uint32 featureIndex);

Refinement findRefinement(IHeadRefinement* headRefinement, PredictionCandidate* currentHead,
uint32 numLabelIndices, const uint32* labelIndices) override;

};

0 comments on commit 860d38e

Please sign in to comment.