public class NominalConditionalSufficientStats extends ConditionalSufficientStats implements Serializable
| Constructor and Description |
|---|
NominalConditionalSufficientStats() |
| Modifier and Type | Method and Description |
|---|---|
SplitCandidate |
bestSplit(SplitMetric splitMetric,
Map<String,WeightMass> preSplitDist,
String attName)
Return the best split
|
double |
probabilityOfAttValConditionedOnClass(double attVal,
String classVal)
Return the probability of an attribute value conditioned on a class value
|
void |
update(double attVal,
String classVal,
double weight)
Update this stat with the supplied attribute value and class value
|
public void update(double attVal,
String classVal,
double weight)
ConditionalSufficientStatsupdate in class ConditionalSufficientStatsattVal - the value of the attributeclassVal - the class valueweight - the weight of this observationpublic double probabilityOfAttValConditionedOnClass(double attVal,
String classVal)
ConditionalSufficientStatsprobabilityOfAttValConditionedOnClass in class ConditionalSufficientStatsattVal - the attribute value to compute the conditional probability
forclassVal - the class valuepublic SplitCandidate bestSplit(SplitMetric splitMetric, Map<String,WeightMass> preSplitDist, String attName)
ConditionalSufficientStatsbestSplit in class ConditionalSufficientStatssplitMetric - the split metric to usepreSplitDist - the distribution of class values prior to splittingattName - the name of the attribute being considered for splittingCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.