Class RegressionFinder
java.lang.Object
adaa.analytics.rules.logic.induction.AbstractFinder
adaa.analytics.rules.logic.induction.RegressionFinder
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ContrastRegressionFinder,RegressionExpertFinder,SurvivalLogRankFinder
Algorithm for growing and pruning regression rules.
-
Field Summary
Fields inherited from class adaa.analytics.rules.logic.induction.AbstractFinder
attributeValuesOrder, modifier, params, pool, threadCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckCandidate(IExampleSet dataset, Rule rule, ConditionBase candidate, Set<Integer> uncovered, Set<Integer> covered, ConditionEvaluation currentBest) protected booleancheckCandidate(ElementaryCondition cnd, double p, double n, double new_p, double new_n, double P, double N, double uncoveredSize, int ruleOrderNum) protected ElementaryConditioninduceCondition(Rule rule, IExampleSet dataset, Set<Integer> uncovered, Set<Integer> covered, Set<IAttribute> allowedAttributes, Pair<String, Object>... extraParams) Abstract method representing all procedures which induce an elementary condition.protected ElementaryConditioninduceCondition_mean(Rule rule, IExampleSet dataset, Set<Integer> uncovered, Set<Integer> covered, Set<IAttribute> allowedAttributes, Pair<String, Object>... extraParams) Methods inherited from class adaa.analytics.rules.logic.induction.AbstractFinder
addObserver, clearObservers, close, grow, names2attributes, notifyConditionAdded, notifyConditionRemoved, notifyGrowingFinished, notifyGrowingStarted, notifyRuleReady, postprocess, preprocess, prune
-
Constructor Details
-
RegressionFinder
-
-
Method Details
-
induceCondition_mean
protected ElementaryCondition induceCondition_mean(Rule rule, IExampleSet dataset, Set<Integer> uncovered, Set<Integer> covered, Set<IAttribute> allowedAttributes, Pair<String, Object>... extraParams) -
induceCondition
protected ElementaryCondition induceCondition(Rule rule, IExampleSet dataset, Set<Integer> uncovered, Set<Integer> covered, Set<IAttribute> allowedAttributes, Pair<String, Object>... extraParams) Description copied from class:AbstractFinderAbstract method representing all procedures which induce an elementary condition.- Specified by:
induceConditionin classAbstractFinder- Parameters:
rule- Current rule.dataset- Training set.uncovered- Set of examples uncovered by the model.covered- Set of examples covered by the rule being grown.allowedAttributes- Set of attributes that may be used during induction.extraParams- Additional parameters.- Returns:
- Induced elementary condition.
-
checkCandidate
protected boolean checkCandidate(IExampleSet dataset, Rule rule, ConditionBase candidate, Set<Integer> uncovered, Set<Integer> covered, ConditionEvaluation currentBest) -
checkCandidate
protected boolean checkCandidate(ElementaryCondition cnd, double p, double n, double new_p, double new_n, double P, double N, double uncoveredSize, int ruleOrderNum)
-