Class AttributePenalty
java.lang.Object
adaa.analytics.rules.logic.induction.AttributePenalty
- All Implemented Interfaces:
IFinderObserver,IQualityModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateCompensation(double penaltyMultiplier, double p, double new_p) protected doublecalculatePenalty(String attr) voidvoidvoidvoidvoiddoublemodifyQuality(double quality, String newAttribute, double p, double new_p) voidreset()void
-
Field Details
-
penaltyStrength
protected double penaltyStrength -
new2allSaturation
protected double new2allSaturation -
compensationFactor
protected double compensationFactor -
rulesetAttributes
-
currentRuleAttributes
-
cumulativePenalty
protected double cumulativePenalty -
pruningMode
protected boolean pruningMode
-
-
Constructor Details
-
AttributePenalty
public AttributePenalty(double penaltyStrength, double penaltySaturation)
-
-
Method Details
-
disableCompensation
public void disableCompensation() -
reset
public void reset() -
modifyQuality
- Specified by:
modifyQualityin interfaceIQualityModifier
-
conditionAdded
- Specified by:
conditionAddedin interfaceIFinderObserver
-
conditionRemoved
- Specified by:
conditionRemovedin interfaceIFinderObserver
-
growingFinished
- Specified by:
growingFinishedin interfaceIFinderObserver
-
growingStarted
- Specified by:
growingStartedin interfaceIFinderObserver
-
ruleReady
- Specified by:
ruleReadyin interfaceIFinderObserver
-
calculatePenalty
-
calculateCompensation
protected double calculateCompensation(double penaltyMultiplier, double p, double new_p)
-