|
||||||||||
| 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.Split
org.knime.base.node.mine.decisiontree2.learner.SplitContinuous
public class SplitContinuous
This class determines the best split for a numeric attribute.
| Field Summary |
|---|
| Fields inherited from class org.knime.base.node.mine.decisiontree2.learner.Split |
|---|
m_splitQualityMeasure |
| Constructor Summary | |
|---|---|
SplitContinuous(InMemoryTable table,
int attributeIndex,
SplitQualityMeasure splitQualityMeasure,
boolean averageSplitpoint,
double minObjectsCount)
Constructs the best split for the given numeric attribute list and the class distribution. |
|
| Method Summary | |
|---|---|
boolean |
canBeFurtherUsed()
For numeric splits it makes sense to use the corresponding atribute in deeper levels. |
double |
getBestSplitValue()
Returns the split value which was evaluated as the best according to the induced partition purity. |
int |
getNumberPartitions()
The number of partitions of a numeric split is always 2. |
int |
getPartitionForRow(DataRowWeighted row)
Returns the partition the given row belongs to according to this split. |
double[] |
getPartitionWeights()
Returns the partition weights. |
String |
toString()
|
| Methods inherited from class org.knime.base.node.mine.decisiontree2.learner.Split |
|---|
getAttributeIndex, getBestQualityMeasure, getQualityMeasureName, getSplitAttributeName, getTable, isValidSplit, setBestQualityMeasure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SplitContinuous(InMemoryTable table,
int attributeIndex,
SplitQualityMeasure splitQualityMeasure,
boolean averageSplitpoint,
double minObjectsCount)
table - the table with the data for which to create the splitattributeIndex - the index of the attribute for which to create the
splitsplitQualityMeasure - the quality measure (e.g. gini or gain
ratio)averageSplitpoint - if true, the split point is set as the average
of the partition borders, else the upper value of the lower
partition is usedminObjectsCount - the minimum number of objects in at least two
partitions| Method Detail |
|---|
public double getBestSplitValue()
public int getNumberPartitions()
getNumberPartitions in class Splitpublic boolean canBeFurtherUsed()
canBeFurtherUsed in class Splitpublic int getPartitionForRow(DataRowWeighted row)
getPartitionForRow in class Splitrow - the row for which to get the partition index
public double[] getPartitionWeights()
getPartitionWeights in class Splitpublic String toString()
toString in class Split
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||