Class RegressionRuleSet
java.lang.Object
adaa.analytics.rules.logic.representation.ruleset.PredictionModel
adaa.analytics.rules.logic.representation.ruleset.RuleSetBase
adaa.analytics.rules.logic.representation.ruleset.RegressionRuleSet
- All Implemented Interfaces:
Serializable
Class representing a set of regression rules.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class adaa.analytics.rules.logic.representation.ruleset.RuleSetBase
RuleSetBase.Significance -
Field Summary
FieldsFields inherited from class adaa.analytics.rules.logic.representation.ruleset.RuleSetBase
ANNOTATION_TEST_REPORT, attributes, growingTime, isVoting, knowledge, params, pruningTime, rules, totalTime -
Constructor Summary
ConstructorsConstructorDescriptionRegressionRuleSet(IExampleSet exampleSet, boolean isVoting, InductionParameters params, Knowledge knowledge) Invokes base class constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetsdefaultValue.doubleCalculate prediction for a given example.voidsetDefaultValue(double defaultValue) SetsdefaultValue.Methods inherited from class adaa.analytics.rules.logic.representation.ruleset.RuleSetBase
addRule, calculateAvgRuleCoverage, calculateAvgRulePrecision, calculateAvgRuleQuality, calculateConditionsCount, calculateInducedCondtionsCount, calculateSignificance, calculateSignificanceFDR, calculateSignificanceFWER, getGrowingTime, getIsVoting, getParams, getPruningTime, getRules, getTotalTime, performPrediction, setGrowingTime, setIsVoting, setPruningTime, setTotalTime, toString, toTableMethods inherited from class adaa.analytics.rules.logic.representation.ruleset.PredictionModel
apply, checkCompatibility, createPredictionAttributes, getLabel, getTrainingHeader, supportsConfidences
-
Field Details
-
defaultValue
protected double defaultValueDefault prediction value.
-
-
Constructor Details
-
RegressionRuleSet
public RegressionRuleSet(IExampleSet exampleSet, boolean isVoting, InductionParameters params, Knowledge knowledge) Invokes base class constructor.- Parameters:
exampleSet- Training set.isVoting- Voting flag.params- Induction parameters.knowledge- User's knowledge.
-
-
Method Details
-
getDefaultValue
public double getDefaultValue()GetsdefaultValue. -
setDefaultValue
public void setDefaultValue(double defaultValue) SetsdefaultValue. -
predict
Calculate prediction for a given example.- Specified by:
predictin classRuleSetBase- Parameters:
example- Example to be examined.- Returns:
- Output prediction.
-