|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.decisiontree2.learner.SplitQualityMeasure
public abstract class SplitQualityMeasure
The abstract class for split quality measures like gini or gain ratio.
| Constructor Summary | |
|---|---|
SplitQualityMeasure()
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
abstract double |
getWorstValue()
Returns the worst value for this quality measure. |
abstract void |
initQualityMeasure(double[] classFrequencies,
double allOverRecords)
Some quality measures, like the information gain, calculate a quality of a previous distribution compared to a new one. |
abstract boolean |
isBetter(double quality1,
double quality2)
Determines if the first passed quality is better compared to the second quality. |
abstract boolean |
isBetterOrEqual(double quality1,
double quality2)
Determines if the first passed quality is better or equal compared to the second quality. |
abstract double |
measureQuality(double allOverRecords,
double[] partitionFrequency,
double[][] partitionClassFrequency,
double numUnknownRecords)
Calculates the quality for a given split. |
abstract double |
postProcessMeasure(double qualityMeasure,
double allOverRecords,
double[] partitionFrequency,
double numUnknownRecords)
Some quality measures need normalization when compared to other attributes. |
abstract String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SplitQualityMeasure()
| Method Detail |
|---|
public abstract double measureQuality(double allOverRecords,
double[] partitionFrequency,
double[][] partitionClassFrequency,
double numUnknownRecords)
allOverRecords - the allover number of records with known values in
the partition to split; corresponds to N in the formulapartitionFrequency - the frequencies of the different patitions;
corresponds to nx in the formulapartitionClassFrequency - all class frequencies Pj (second
dimension) for all partitions Tx (first dimension *numUnknownRecords - the number of records with unknown (missing)
value of the relevant attribute; used to weight the quality
measure
public abstract boolean isBetterOrEqual(double quality1,
double quality2)
quality1 - first quality to comparequality2 - second quality to compare
public abstract boolean isBetter(double quality1,
double quality2)
quality1 - first quality to comparequality2 - second quality to compare
public abstract double getWorstValue()
public abstract void initQualityMeasure(double[] classFrequencies,
double allOverRecords)
classFrequencies - the class frequenciesallOverRecords - the overall countpublic abstract String toString()
toString in class Object
public abstract double postProcessMeasure(double qualityMeasure,
double allOverRecords,
double[] partitionFrequency,
double numUnknownRecords)
qualityMeasure - the quality measure to post processallOverRecords - the allover number of known (non-missing) recordspartitionFrequency - the frequencies of the potential split
partitionsnumUnknownRecords - the number of unknown (missing) records
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||