RuleGenerationModepublic class RuleStatisticsOpt extends RuleStatistics
RuleStatistics.getQuantityOfCoveredExamples(), RuleStatistics.getQuantityOfCoveredExamplesFromTestMemoryContainer(),
RuleStatistics.getNumbersOfCoveredExamples() and RuleStatistics.getNumbersOfCoveredExamplesFromTestMemoryContainer()
methods for details.
Since rule may have no reference to learning memory container (e.g., after it has been read from file),
each method which calculates any statistic in context of that container checks if it is not null
and throws NullPointerException if rule's learning memory container is not set.RuleStatistics class:SortedListsOperations.convertArrayList2IntArray(supportingExamples) changed to faster supportingExamples.toArray(new Integer[]{}),new Integer(i) changed to Integer.valueOf(i),final,if statements,toString() & toJAMMString() methods: StringBuffer changed to faster StringBuilder,toString() & toJAMMString() methods: despite of using string buffer there where concatenations of strings,java.util.ArrayList to TIntArrayList from gnu.trove library.A_CONFIRMATION_MEASURE, C1_CONFIRMATION_MEASURE, CONFIDENCE, COVERAGE_FACTOR, EPSILON_PRIM_MEASURE, F_CONFIRMATION_MEASURE, INCONSISTENCY_MEASURE, L_CONFIRMATION_MEASURE, NUMBERS_OF_COVERED_EXAMPLES, NUMBERS_OF_COVERED_EXAMPLES_FROM_TEST_MEMORY_CONTAINER, NUMBERS_OF_NEGATIVE_COVERED_EXAMPLES, NUMBERS_OF_NEUTRAL_COVERED_EXAMPLES, NUMBERS_OF_SUPPORTING_EXAMPLES, QUANTITY_OF_COVERED_EXAMPLES, QUANTITY_OF_COVERED_EXAMPLES_FROM_TEST_MEMORY_CONTAINER, QUANTITY_OF_NEGATIVE_COVERED_EXAMPLES, QUANTITY_OF_NEUTRAL_COVERED_EXAMPLES, STRENGTH, SUPPORT, UNKNOWN_DOUBLE_VALUE, UNKNOWN_INT_ARRAY, UNKNOWN_INT_VALUE, Z_CONFIRMATION_MEASURE| Constructor | Description |
|---|---|
RuleStatisticsOpt(OptRule rule) |
Constructor of the
RuleStatisticsOpt class. |
| Modifier and Type | Method | Description |
|---|---|---|
double[] |
getFastStatisticsAssumingThatConditionIsAddedToRule(Condition condition) |
Calculates support, quantity of covered examples and confidence assuming that condition is added to rule
|
int[] |
getNumbersOfCoveredExamplesAssumingThatConditionIsAddedToRule(Condition condition) |
Gets numbers of examples covered by the rule, in the context of its learning memory container, assuming that given condition is added to the rule.
|
int[] |
getNumbersOfStrongCoveredExamples() |
Gets numbers of all examples from rule's learning memory container that are covered by the rule in a strong way.
|
int[] |
getNumbersOfStrongCoveredExamplesAssumingThatConditionIsAddedToRule(Condition condition) |
TODO - add description
|
int[] |
getNumbersOfStrongSupportingExamples() |
TODO - add description
|
int[] |
getNumbersOfStrongSupportingExamplesAssumingThatConditionIsAddedToRule(Condition condition) |
TODO - add description
|
int[] |
getNumbersOfSupportingExamplesAssumingThatConditionIsAddedToRule(Condition condition) |
Gets numbers of examples supporting the rule, in the context of its learning memory container, assuming that given condition is added to the rule.
|
OptRule |
getRule() |
Gets rule for which these statistics are defined (gives direct access to that rule)
|
boolean |
isCoveredByAtLeastOneExampleWithNoMV() |
Checks if there exists at least one example from rule's learning memory container that is covered by the rule in a strong way,
i.e. that has no missing value for all those attributes, for which the rule has at least one condition.
|
void |
reset() |
Resets all statistics stored in this object and causes that each first call to any 'get' method, which delivers
any statistic, will cause additional calculations before returning that statistic
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitenterRuleGenerationMode, getAConfirmationMeasureValue, getAlpha, getBeta, getC1ConfirmationMeasureValue, getConfidence, getConfidence, getConfidenceAssumingThatConditionIsAddedToRule, getCoverageFactor, getEpsilonPrimMeasureValue, getEpsilonPrimMeasureValueAssumingThatConditionIsAddedToRule, getFConfirmationMeasureValue, getGeneratedRuleMaximumEpsilonPrimMeasureValue, getInconsistencyMeasureValue, getInconsistencyMeasureValueAssumingThatConditionIsAddedToRule, getLConfirmationMeasureValue, getNumbersOfCoveredExamples, getNumbersOfCoveredExamplesFromTestMemoryContainer, getNumbersOfNegativeCoveredExamples, getNumbersOfNeutralCoveredExamples, getNumbersOfSupportingExamples, getQuantityOfConditions, getQuantityOfCoveredExamples, getQuantityOfCoveredExamplesAssumingThatConditionIsAddedToRule, getQuantityOfCoveredExamplesFromTestMemoryContainer, getQuantityOfDecisions, getQuantityOfNegativeCoveredExamples, getQuantityOfNeutralCoveredExamples, getQuantityOfNotNeutralCoveredExamplesAssumingThatConditionIsAddedToRule, getStrength, getSupport, getSupportAssumingThatConditionIsAddedToRule, getZConfirmationMeasureValue, isInRuleGenerationMode, leaveRuleGenerationMode, setAConfirmationMeasureValue, setAlpha, setBeta, setC1ConfirmationMeasureValue, setConfidence, setCoverageFactor, setEpsilonPrimMeasureValue, setFConfirmationMeasureValue, setInconsistencyMeasureValue, setInitialStatistics, setLConfirmationMeasureValue, setNumbersOfCoveredExamples, setNumbersOfNegativeCoveredExamples, setNumbersOfNeutralCoveredExamples, setNumbersOfSupportingExamples, setQuantityOfCoveredExamples, setQuantityOfNegativeCoveredExamples, setQuantityOfNeutralCoveredExamples, setStrength, setSupport, setZConfirmationMeasureValue, statisticIsStored, toJAMMString, toShortString, toStringpublic RuleStatisticsOpt(OptRule rule)
RuleStatisticsOpt class.
Constructs rule's statistics for given rule.
Stores given rule reference directly in this class.
Updates given rule by setting its statistics object to this (rule.setRuleStatistics(this)).
Stores information if rule is in generation mode.rule - reference to the rule for which these statistics are createdjava.lang.NullPointerException - when rule is nullpublic void reset()
reset in class RuleStatisticspublic double[] getFastStatisticsAssumingThatConditionIsAddedToRule(Condition condition)
condition - given conditionpublic int[] getNumbersOfStrongSupportingExamples()
public int[] getNumbersOfSupportingExamplesAssumingThatConditionIsAddedToRule(Condition condition)
getNumbersOfSupportingExamples method for more details.getNumbersOfSupportingExamplesAssumingThatConditionIsAddedToRule in class RuleStatisticscondition - condition that may be added to rule for which these statistics are validjava.lang.NullPointerException - when rule's learning memory container or given condition is nullpublic int[] getNumbersOfStrongCoveredExamples()
public int[] getNumbersOfCoveredExamplesAssumingThatConditionIsAddedToRule(Condition condition)
getNumbersOfCoveredExamples method for more details.getNumbersOfCoveredExamplesAssumingThatConditionIsAddedToRule in class RuleStatisticscondition - condition that may be added to rule for which these statistics are validjava.lang.NullPointerException - when rule's learning memory container or given condition is nullpublic OptRule getRule()
getRule in class RuleStatisticspublic int[] getNumbersOfStrongCoveredExamplesAssumingThatConditionIsAddedToRule(Condition condition)
condition - TODO - add descriptionpublic int[] getNumbersOfStrongSupportingExamplesAssumingThatConditionIsAddedToRule(Condition condition)
condition - TODO - add descriptionpublic boolean isCoveredByAtLeastOneExampleWithNoMV()
true if at least one example from covered examples has known value on
all rules' conditions' attributes.