Class RegressionExpertFinder
java.lang.Object
adaa.analytics.rules.logic.induction.AbstractFinder
adaa.analytics.rules.logic.induction.RegressionFinder
adaa.analytics.rules.logic.induction.RegressionExpertFinder
- All Implemented Interfaces:
IExpertFinder
,AutoCloseable
- Direct Known Subclasses:
SurvivalLogRankExpertFinder
Class for growing and pruning regression rules with user's knowledge.
-
Field Summary
FieldsFields inherited from class adaa.analytics.rules.logic.induction.AbstractFinder
attributeValuesOrder, modifier, params, pool, threadCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjust
(Rule rule, IExampleSet dataset, Set<Integer> uncovered) protected boolean
checkCandidate
(IExampleSet dataset, Rule rule, ConditionBase candidate, Set<Integer> uncovered, Set<Integer> covered, ConditionEvaluation currentBest) int
grow
(Rule rule, IExampleSet dataset, Set<Integer> uncovered) Adds elementary conditions to the rule premise until termination conditions are fulfilled.void
setKnowledge
(Knowledge knowledge) Methods inherited from class adaa.analytics.rules.logic.induction.RegressionFinder
checkCandidate, induceCondition, induceCondition_mean
Methods inherited from class adaa.analytics.rules.logic.induction.AbstractFinder
addObserver, clearObservers, close, names2attributes, notifyConditionAdded, notifyConditionRemoved, notifyGrowingFinished, notifyGrowingStarted, notifyRuleReady, postprocess, preprocess, prune
-
Field Details
-
knowledge
-
-
Constructor Details
-
RegressionExpertFinder
-
-
Method Details
-
setKnowledge
-
adjust
- Specified by:
adjust
in interfaceIExpertFinder
-
grow
Description copied from class:AbstractFinder
Adds elementary conditions to the rule premise until termination conditions are fulfilled.- Overrides:
grow
in classAbstractFinder
- Parameters:
rule
- Rule to be grown.dataset
- Training set.uncovered
- Collection of examples yet uncovered by the model (positive examples in the classification problems).- Returns:
- Number of conditions added.
-
checkCandidate
protected boolean checkCandidate(IExampleSet dataset, Rule rule, ConditionBase candidate, Set<Integer> uncovered, Set<Integer> covered, ConditionEvaluation currentBest) - Overrides:
checkCandidate
in classRegressionFinder
-