Class SurvivalRule
java.lang.Object
adaa.analytics.rules.logic.representation.rule.Rule
adaa.analytics.rules.logic.representation.rule.SurvivalRule
- All Implemented Interfaces:
Serializable,Cloneable
Class representing a survival rule.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected KaplanMeierEstimatorKaplan-Meier estimator in a rule consequence.static final StringName of the attribute role representing survival time.Fields inherited from class adaa.analytics.rules.logic.representation.rule.Rule
consequence, coveredNegatives, coveredPositives, inducedConditionsCount, premise, pvalue, ruleOrderNum, stats, weight, weighted_n, weighted_N, weighted_p, weighted_P -
Constructor Summary
ConstructorsConstructorDescriptionSurvivalRule(CompoundCondition premise, ElementaryCondition consequence) Creates a survival rule with a given premise (consequence is ignored).SurvivalRule(Rule r, KaplanMeierEstimator estimator) Creates a survival rule from rule with empty consequence and survival function estimate. -
Method Summary
Modifier and TypeMethodDescriptioncovers(IExampleSet set) Applies the rule on a specified example set.voidcovers(IExampleSet set, ContingencyTable ct) Applies the rule on a specified example set.voidcovers(IExampleSet set, ContingencyTable ct, Set<Integer> positives, Set<Integer> negatives) Applies the rule on a specified example set.covers(IExampleSet set, Set<Integer> ids) Applies the rule on a part of a specified example set.Getsestimator.voidSetsestimator.toString()Generates a text representation of the rule.voidupdateWeightAndPValue(IExampleSet trainSet, ContingencyTable ct, IQualityMeasure votingMeasure) CalculatesRule.weightandRule.pvalue.Methods inherited from class adaa.analytics.rules.logic.representation.rule.Rule
clone, copyFrom, coversUnlabelled, equals, getConsequence, getCoveredNegatives, getCoveredPositives, getCoveringInformation, getInducedConditionsCount, getPremise, getPValue, getRuleOrderNum, getStat, getTableHeader, getWeight, getWeighted_n, getWeighted_N, getWeighted_p, getWeighted_P, printStats, putStat, setConsequence, setCoveredNegatives, setCoveredPositives, setCoveringInformation, setInducedContitionsCount, setPremise, setPValue, setRuleOrderNum, setWeight, setWeighted_n, setWeighted_N, setWeighted_p, setWeighted_P, toTable
-
Field Details
-
SURVIVAL_TIME_ROLE
Name of the attribute role representing survival time.- See Also:
-
estimator
Kaplan-Meier estimator in a rule consequence.
-
-
Constructor Details
-
SurvivalRule
Creates a survival rule with a given premise (consequence is ignored).- Parameters:
premise- Rule premise.consequence- Ignored.
-
SurvivalRule
Creates a survival rule from rule with empty consequence and survival function estimate.- Parameters:
r- Reference rule.estimator- Survival function estimate.
-
-
Method Details
-
getEstimator
Getsestimator. -
setEstimator
Setsestimator. -
updateWeightAndPValue
public void updateWeightAndPValue(IExampleSet trainSet, ContingencyTable ct, IQualityMeasure votingMeasure) CalculatesRule.weightandRule.pvalue.- Specified by:
updateWeightAndPValuein classRule- Parameters:
trainSet- Training set.ct- Contingency table.votingMeasure- Measure used as weight.
-
covers
Applies the rule on a part of a specified example set. -
covers
Description copied from class:RuleApplies the rule on a specified example set. -
covers
public void covers(IExampleSet set, @NotNull ContingencyTable ct, @NotNull Set<Integer> positives, @NotNull Set<Integer> negatives) Description copied from class:RuleApplies the rule on a specified example set. -
covers
Applies the rule on a specified example set. -
toString
Description copied from class:RuleGenerates a text representation of the rule.
-