public class EntireGranulesRuleGenerator extends RuleGenerator
Constructor | Description |
---|---|
EntireGranulesRuleGenerator() |
Sole constructor.
|
EntireGranulesRuleGenerator(ApproximatedEntity[] approximatedEntities,
double[] variableConsistencyParameterValueThresholds,
ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor,
int type,
int characteristicDecisionClassUsageTip,
ConditionValidator conditionValidator,
MemoryContainer learningMemoryContainer) |
Constructor initializing all fields used by
generateRules() method. |
EntireGranulesRuleGenerator(ApproximatedEntity[] approximatedEntities,
double variableConsistencyParameterValueThreshold,
ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor,
int type,
int characteristicDecisionClassUsageTip,
ConditionValidator conditionValidator,
MemoryContainer learningMemoryContainer) |
Constructor initializing all fields used by
generateRules() method. |
Modifier and Type | Method | Description |
---|---|---|
java.util.ArrayList<Rule> |
generateRules() |
Generates decision rules just like
generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer) method,
but uses fields of this object, rather than given parameters. |
java.util.ArrayList<Rule> |
generateRules(ApproximatedEntity[] approximatedEntities,
double[] variableConsistencyParameterValueThresholds,
ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor,
int type,
int characteristicDecisionClassUsageTip,
ConditionValidator conditionValidator,
MemoryContainer learningMemoryContainer) |
Generates decision rules of given type (certain, possible or approximate),
for given set (array) of approximated entities (unions of decision classes or single decision classes),
for given variable consistency parameter value thresholds (support for variable consistency approach),
for given characteristic decision class usage tip (which affects type of created conditions and decisions)
and for given learning memory container which may be either decision table, or PCT, or similarity table.
This method can be used to generate all non-minimal robust (object-based) rules of given type, for all possible decision classes or for all possible upward / downward unions of decision classes. This method considers consecutive approximated entities (from the first, with zero index, to the last). |
java.util.ArrayList<Rule> |
generateRules(ApproximatedEntity[] approximatedEntities,
double variableConsistencyParameterValueThreshold,
ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor,
int type,
int characteristicDecisionClassUsageTip,
ConditionValidator conditionValidator,
MemoryContainer learningMemoryContainer) |
|
java.util.ArrayList<Rule> |
generateRulesForPositiveExamples(int type,
int characteristicDecisionClassUsageTip,
Field characteristicDecisionClass,
ConditionValidator conditionValidator,
java.util.HashSet<Condition> decisions,
MemoryContainer learningMemoryContainer,
int[] numbersOfPositiveExamples) |
Generates decision rules of given type (certain, possible or approximate),
for given characteristic decision class (basic class of some union of decision classes or single decision class),
for given characteristic decision class usage tip (which tells if given characteristic decision class is
basic class of some upward (
Rule.AT_LEAST ) or downward (Rule.AT_MOST ) union of decision classes
or just single decision class (Rule.EQUAL );
value of this parameter affects also type of created conditions),
for given decisions (which will be set on the right (decision) side of all created and returned rules),
for given learning memory container which may be either decision table, or PCT, or similarity table,
and for given array with numbers of positive examples from given learning memory container
(which may come from lower / upper approximation or boundary of some decision class
or from lower / upper approximation of some upward / downward union of decision classes). |
ApproximatedEntity[] |
getApproximatedEntities() |
Gets array of approximated entities, used by
generateRules() method. |
ApproximatedEntityDecisionsPredictor |
getApproximatedEntityDecisionsPredictor() |
Gets approximated entity decisions' predictor, used by
generateRules() method. |
int |
getCharacteristicDecisionClassUsageTip() |
Gets usage tip for characteristic decision classes of generated rules, used by
generateRules() method. |
ConditionValidator |
getConditionValidator() |
Gets condition validator stored in generated rules, used by
generateRules() method. |
MemoryContainer |
getLearningMemoryContainer() |
Gets learning memory container for which all rules are generated, used by
generateRules() method. |
int |
getType() |
Gets type of generated rules, used by
generateRules() method. |
double[] |
getVariableConsistencyParameterValueThresholds() |
Gets subsequent variable consistency parameter value thresholds for subsequent approximated entities, used by
generateRules() method. |
void |
setApproximatedEntities(ApproximatedEntity[] approximatedEntities) |
Sets array of approximated entities, used by
generateRules() method. |
void |
setApproximatedEntityDecisionsPredictor(ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor) |
Sets approximated entity decisions' predictor, used by
generateRules() method. |
void |
setCharacteristicDecisionClassUsageTip(int characteristicDecisionClassUsageTip) |
Sets usage tip for characteristic decision classes of generated rules, used by
generateRules() method. |
void |
setConditionValidator(ConditionValidator conditionValidator) |
Sets condition validator stored in generated rules, used by
generateRules() method. |
void |
setLearningMemoryContainer(MemoryContainer learningMemoryContainer) |
Sets learning memory container for which all rules are generated, used by
generateRules() method. |
void |
setType(int type) |
Sets type of generated rules, used by
generateRules() method. |
void |
setVariableConsistencyParameterValueThresholds(double[] variableConsistencyParameterValueThresholds) |
Sets variable consistency parameter value thresholds for subsequent approximated entities, used by
generateRules() method. |
public EntireGranulesRuleGenerator()
public EntireGranulesRuleGenerator(ApproximatedEntity[] approximatedEntities, double[] variableConsistencyParameterValueThresholds, ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor, int type, int characteristicDecisionClassUsageTip, ConditionValidator conditionValidator, MemoryContainer learningMemoryContainer)
generateRules()
method.approximatedEntities
- see approximatedEntities
fieldvariableConsistencyParameterValueThresholds
- see variableConsistencyParameterValueThresholds
fieldapproximatedEntityDecisionsPredictor
- see approximatedEntityDecisionsPredictor
fieldtype
- see type
fieldcharacteristicDecisionClassUsageTip
- see characteristicDecisionClassUsageTip
fieldconditionValidator
- see conditionValidator
fieldlearningMemoryContainer
- see learningMemoryContainer
fieldjava.lang.NullPointerException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
InvalidValueException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
InvalidTypeException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
public EntireGranulesRuleGenerator(ApproximatedEntity[] approximatedEntities, double variableConsistencyParameterValueThreshold, ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor, int type, int characteristicDecisionClassUsageTip, ConditionValidator conditionValidator, MemoryContainer learningMemoryContainer)
generateRules()
method.approximatedEntities
- see approximatedEntities
fieldvariableConsistencyParameterValueThreshold
- variable consistency parameter value threshold used to fill array of thresholds
stored in variableConsistencyParameterValueThresholds
fieldapproximatedEntityDecisionsPredictor
- see approximatedEntityDecisionsPredictor
fieldtype
- see type
fieldcharacteristicDecisionClassUsageTip
- see characteristicDecisionClassUsageTip
fieldconditionValidator
- see conditionValidator
fieldlearningMemoryContainer
- see learningMemoryContainer
fieldjava.lang.NullPointerException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
InvalidValueException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
InvalidTypeException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
public java.util.ArrayList<Rule> generateRules(ApproximatedEntity[] approximatedEntities, double[] variableConsistencyParameterValueThresholds, ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor, int type, int characteristicDecisionClassUsageTip, ConditionValidator conditionValidator, MemoryContainer learningMemoryContainer)
type
parameter value),ApproximatedEntity.getCharacteristicDecisionClass
method for details) andtype
parameter value - see
ApproximatedEntityDecisionsPredictor.getDecisionsForRuleInducedFromLowerApproximation
,
ApproximatedEntityDecisionsPredictor.getDecisionsForRuleInducedFromUpperApproximation
and
ApproximatedEntityDecisionsPredictor.getDecisionsForRuleInducedFromBoundary
methods for details).generateRulesForPositiveExamples
method for:RulesContainer rulesContainer = new RulesContainer(learningMemoryContainer, variableConsistencyParameterValueThreshold);
ArrayList<Rule> rules = ruleGenerator.generateRules(approximatedEntities, variableConsistencyParameterValueThresholds, approximatedEntityDecisionsPredictor, type, characteristicDecisionClassUsageTip, conditionValidator, learningMemoryContainer);
for(int i = 0; i < rules.size(); i++) {
rulesContainer.storeRule(rules.get(i));
}
----------------------------------------------------------basicValidationOfGenerateRulesParameters
method.approximatedEntities
- Set (array) of approximated entities. It may contain unions of decision classes
or single decision classes. For each union / decision class appropriate approximation or boundary
is calculated, according to the value of type
parameter and for given variable consistency parameter value threshold.
Calculated approximation or boundary is a set of positive examples used when calling
generateRulesForPositiveExamples
method.approximatedEntities
set is compatible with a value of
characteristicDecisionClassUsageTip
parameter, which describes that contents.
Otherwise unforeseen problems may arise while inducing decision rules. Correct combinations are:approximatedEntities
set contains single decision classes and characteristicDecisionClassUsageTip
is equal to Rule.EQUAL
,approximatedEntities
set contains upward unions and characteristicDecisionClassUsageTip
is equal to Rule.AT_LEAST
,approximatedEntities
set contains downward unions and characteristicDecisionClassUsageTip
is equal to Rule.AT_MOST
.variableConsistencyParameterValueThresholds
- Variable consistency parameter value thresholds for subsequent approximated entities, used to calculate lower / upper approximations or
boundaries of subsequent approximated entities (unions of decision classes or single decision classes). If for some entity value of this
parameter is the most restrictive (IRSA / DRSA), then for that entity this method induces rules, for which variable consistency measure value is the most restrictive.
If value of this parameter is not the most restrictive (VC-IRSA / VC-DRSA), then this method induces rules, for which variable consistency measure value may be not the most restrictive.approximatedEntityDecisionsPredictor
- object implementing ApproximatedEntityDecisionsPredictor
interface, which can predict right (decision) side of all rules of given type, induced for lower / upper approximation or boundary
of one approximated entity (union or single decision class)type
- Type of generated rules. Can be Rule.CERTAIN
, Rule.POSSIBLE
or Rule.APPROXIMATE
.characteristicDecisionClassUsageTip
- Usage tip for characteristic decision classes of generated rules.
Can be Rule.AT_LEAST
, Rule.AT_MOST
or Rule.EQUAL
.
Value of this parameter is passed to generateRulesForPositiveExamples
method
to influence type of relations in created conditions and decisions.Rule.EQUAL
=> given set (array) of approximated entities contains only single decision classes;
learning memory container contains only attributes without preference type assigned;
= conditions and decisions should be created basing on evaluations of given positive examples;
if additionally all variable consistency parameter value thresholds have the most restrictive values, then VC-DOMLEM behaves like LEM2 algorithmRule.AT_LEAST
=> given set (array) of approximated entities contains only upward unions of decision classes;
learning memory container contains at least one active condition criterion and possibly also attributes without preference type assigned;
>= (for gain criteria), <= (for cost criteria) or = (for attributes without preference type assigned)
conditions and >= (for gain decision criterion) or <= (for cost decision criterion) decisions should be created basing on evaluations of given positive examples;
if additionally all variable consistency parameter value thresholds have the most restrictive values, then VC-DOMLEM behaves like DOMLEM algorithmRule.AT_MOST
=> given set (array) of approximated entities contains only downward unions of decision classes;
learning memory container contains at least one active condition criterion and possibly also attributes without preference type assigned;
<= (for gain criteria), >= (for cost criteria) or = (for attributes without preference type assigned)
conditions and <= (for gain decision criterion) or >= (for cost decision criterion) decisions should be created basing on evaluations of given positive examples;
if additionally all variable consistency parameter value thresholds have the most restrictive values, then VC-DOMLEM behaves like DOMLEM algorithmconditionValidator
- condition validator stored in generated rules and used to validate all conditions
and decisions added to these ruleslearningMemoryContainer
- learning memory container for which all rules are generatedjava.lang.NullPointerException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
InvalidValueException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
and advancedValidationOfGenerateRulesParameters()
InvalidTypeException
- see basicValidationOfGenerateRulesParameters(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
and advancedValidationOfGenerateRulesParameters()
public java.util.ArrayList<Rule> generateRules(ApproximatedEntity[] approximatedEntities, double variableConsistencyParameterValueThreshold, ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor, int type, int characteristicDecisionClassUsageTip, ConditionValidator conditionValidator, MemoryContainer learningMemoryContainer)
generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
method.
Checks if given array of approximated entities is not null
, and if so, then creates
array of variable consistency parameter values' thresholds with length equal to the length of approximatedEntities
.
Next, this array is filled with the value of variableConsistencyParameterValueThreshold
.
Finally, generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
method is invoked
and its result is returned.generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
method.approximatedEntities
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodvariableConsistencyParameterValueThreshold
- variable consistency parameter value threshold used to fill array of thresholds
used by generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodapproximatedEntityDecisionsPredictor
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodtype
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodcharacteristicDecisionClassUsageTip
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodconditionValidator
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodlearningMemoryContainer
- see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodgenerateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodjava.lang.NullPointerException
- when array with approximated entities is null
public java.util.ArrayList<Rule> generateRules()
generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
method,
but uses fields of this object, rather than given parameters. For details see
generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
method.generateRules
in class RuleGenerator
generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
methodjava.lang.NullPointerException
- see checkGenerateRulesFieldsSetup()
InvalidValueException
- see checkGenerateRulesFieldsSetup()
and advancedValidationOfGenerateRulesParameters()
InvalidTypeException
- see checkGenerateRulesFieldsSetup()
and advancedValidationOfGenerateRulesParameters()
public java.util.ArrayList<Rule> generateRulesForPositiveExamples(int type, int characteristicDecisionClassUsageTip, Field characteristicDecisionClass, ConditionValidator conditionValidator, java.util.HashSet<Condition> decisions, MemoryContainer learningMemoryContainer, int[] numbersOfPositiveExamples)
Rule.AT_LEAST
) or downward (Rule.AT_MOST
) union of decision classes
or just single decision class (Rule.EQUAL
);
value of this parameter affects also type of created conditions),
for given decisions (which will be set on the right (decision) side of all created and returned rules),
for given learning memory container which may be either decision table, or PCT, or similarity table,
and for given array with numbers of positive examples from given learning memory container
(which may come from lower / upper approximation or boundary of some decision class
or from lower / upper approximation of some upward / downward union of decision classes).type
- Type of generated rules. Can be Rule.CERTAIN
, Rule.POSSIBLE
or Rule.APPROXIMATE
.
In fact this parameter is not used during calculations, but needed for validation and stored in generated rules.characteristicDecisionClassUsageTip
- Usage tip for characteristic decision class of generated rules.
Can be Rule.AT_LEAST
, Rule.AT_MOST
or Rule.EQUAL
.
Value of this parameter is used by constructor of Rule
class.
It affects also, together with the type of generated rules, the type of conditions added to generated rules.type == Rule.CERTAIN
or type == Rule.POSSIBLE
) and
(characteristicDecisionClassUsageTip == Rule.AT_LEAST
)type == Rule.CERTAIN
or type == Rule.POSSIBLE
) and
(characteristicDecisionClassUsageTip == Rule.AT_MOST
)characteristicDecisionClassUsageTip == Rule.EQUAL
characteristicDecisionClass
- Decision class characteristic for generated rules. Decision class Cl is
characteristic for a rule if:conditionValidator
- condition validator stored in generated rules and used to validate all conditions
and decisions added to these rulesdecisions
- Hash set with decisions established at the right (decision) part of generated rules.
In fact this parameter is not used during calculations.
Decisions are stored in each rule and may be used in the future, when the rule is converted to textual form.learningMemoryContainer
- reference to learning memory container for which rules are generatednumbersOfPositiveExamples
- Array with numbers of positive examples for which rules are generated.
These positive examples may come from lower / upper approximation or boundary of a decision class
or lower / upper approximation or boundary of a union of decision classes.
Numbers concern examples from learning memory container.Rule
.
Rules appear in the list in the order in which they have been induced.
If the set of positive examples is empty (but reference is not null
), then
empty list of rules is returned.InvalidValueException
- when type of the rules in none of Rule.CERTAIN
, Rule.POSSIBLE
or Rule.APPROXIMATE
,
when characteristicDecisionClassUsageTip is none of Rule.AT_LEAST
, Rule.AT_MOST
or Rule.EQUAL
,
when any decision is invalid according to condition validator,
when learning memory container contains no attributes or no examples,
when no active condition attribute has been found in memory container
or when characteristic decision class usage tip is not compatible with learning memory container, which happens if:characteristicDecisionClassUsageTip
== EQUAL
(since there is no sense in generating equality conditions for criteria)characteristicDecisionClassUsageTip
== AT_LEAST
or AT_MOST
(since there is no sense in generating >= or <= conditions for attributes)java.lang.NullPointerException
- when decision class characteristic for this rule is null
,
when condition validator is null
,
when decisions are null
,
when learning memory container is null
or when array with numbers of positive examples is null
InvalidTypeException
- when type of initial value of any active condition attribute / criterion from learning memory container is not acceptable,
which happens if type is different than SimpleField
and SimilarityField
in case of IRSA / VC-IRSA
or different than SimpleField
, PairField
and SimilarityField
in case of DRSA / VC-DRSApublic ApproximatedEntity[] getApproximatedEntities()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setApproximatedEntities(ApproximatedEntity[] approximatedEntities)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.approximatedEntities
- array of approximated entitiesjava.lang.NullPointerException
- when array with approximated entities is null
InvalidValueException
- when array with approximated entities is emptypublic double[] getVariableConsistencyParameterValueThresholds()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setVariableConsistencyParameterValueThresholds(double[] variableConsistencyParameterValueThresholds)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.variableConsistencyParameterValueThresholds
- variable consistency parameter value thresholds for subsequent approximated entitiesjava.lang.NullPointerException
- when array with variable consistency parameter value thresholds is null
InvalidValueException
- when any variable consistency parameter value threshold is not in [0, 1] rangepublic ApproximatedEntityDecisionsPredictor getApproximatedEntityDecisionsPredictor()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setApproximatedEntityDecisionsPredictor(ApproximatedEntityDecisionsPredictor approximatedEntityDecisionsPredictor)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.approximatedEntityDecisionsPredictor
- approximated entity decisions' predictorjava.lang.NullPointerException
- when given approximated entity decisions predictor is null
public int getType()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setType(int type)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.type
- type of generated rulesInvalidValueException
- when type of the rules in none of Rule.CERTAIN
, Rule.POSSIBLE
or Rule.APPROXIMATE
public int getCharacteristicDecisionClassUsageTip()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setCharacteristicDecisionClassUsageTip(int characteristicDecisionClassUsageTip)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.characteristicDecisionClassUsageTip
- usage tip for characteristic decision classes of generated rulesInvalidValueException
- when characteristicDecisionClassUsageTip
is none of Rule.AT_LEAST
,
Rule.AT_MOST
or Rule.EQUAL
public ConditionValidator getConditionValidator()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setConditionValidator(ConditionValidator conditionValidator)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.conditionValidator
- condition validator stored in generated rulesjava.lang.NullPointerException
- when condition validator is null
public MemoryContainer getLearningMemoryContainer()
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.public void setLearningMemoryContainer(MemoryContainer learningMemoryContainer)
generateRules()
method.
For details - see generateRules(ApproximatedEntity[], double[], ApproximatedEntityDecisionsPredictor, int, int, ConditionValidator, MemoryContainer)
.learningMemoryContainer
- learning memory container for which all rules are generatedjava.lang.NullPointerException
- when learning memory container is null
InvalidValueException
- when learning memory container contains no attributes or no examples