Class AttributePenalty
java.lang.Object
adaa.analytics.rules.logic.induction.AttributePenalty
- All Implemented Interfaces:
IFinderObserver
,IQualityModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected double
protected double
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateCompensation
(double penaltyMultiplier, double p, double new_p) protected double
calculatePenalty
(String attr) void
void
void
void
void
double
modifyQuality
(double quality, String newAttribute, double p, double new_p) void
reset()
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:
modifyQuality
in interfaceIQualityModifier
-
conditionAdded
- Specified by:
conditionAdded
in interfaceIFinderObserver
-
conditionRemoved
- Specified by:
conditionRemoved
in interfaceIFinderObserver
-
growingFinished
- Specified by:
growingFinished
in interfaceIFinderObserver
-
growingStarted
- Specified by:
growingStarted
in interfaceIFinderObserver
-
ruleReady
- Specified by:
ruleReady
in interfaceIFinderObserver
-
calculatePenalty
-
calculateCompensation
protected double calculateCompensation(double penaltyMultiplier, double p, double new_p)
-