public interface IImpurityFunction
Modifier and Type | Method and Description |
---|---|
double |
impurities(int[] patterns,
double cost)
It compute the impurity value associated
|
void |
setDataset(DoubleTransposedDataSet dataset)
It sets the datasets of patters
|
void setDataset(DoubleTransposedDataSet dataset)
dataset
- Complete data set of patternsdouble impurities(int[] patterns, double cost) throws java.lang.Exception
patterns
- index of patterns from dataset associated to node to evaluatecost
- Associated costjava.lang.Exception