|
||||||||||
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.SplitNominal
org.knime.base.node.mine.decisiontree2.learner.SplitNominalBinary
public class SplitNominalBinary
This class determines the best binary split for a nominal attribute. The split consists of subsets for both partitions.
Field Summary | |
---|---|
static int |
LEFT_PARTITION
index for left partition of a binary nominal split. |
static int |
RIGHT_PARTITION
index for right partition of a binary nominal split. |
Fields inherited from class org.knime.base.node.mine.decisiontree2.learner.Split |
---|
m_splitQualityMeasure |
Constructor Summary | |
---|---|
SplitNominalBinary(InMemoryTable table,
int attributeIndex,
SplitQualityMeasure splitQualityMeasure,
double minObjectsCount,
int maxNumDifferentValues)
Constructs the best split for the given nominal attribute. |
Method Summary | |
---|---|
boolean |
canBeFurtherUsed()
Binary nominal splits can be further used. |
int[] |
getIntMappingsLeftPartition()
Returns an array of integer mappings corresponding to the left partition nominal values. |
int[] |
getIntMappingsRightPartition()
Returns an array of integer mappings corresponding to the right partition nominal values. |
int |
getNumberPartitions()
The number of partitions of a binary nominal split is 2. |
int |
getPartitionForRow(DataRowWeighted row)
Returns the partition the given row belongs to according to this split. |
double[] |
getPartitionWeights()
Returns the partition weights. |
static void |
main(String[] args)
Main. |
Methods inherited from class org.knime.base.node.mine.decisiontree2.learner.SplitNominal |
---|
getSplitValues |
Methods inherited from class org.knime.base.node.mine.decisiontree2.learner.Split |
---|
getAttributeIndex, getBestQualityMeasure, getQualityMeasureName, getSplitAttributeName, getTable, isValidSplit, setBestQualityMeasure, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LEFT_PARTITION
public static final int RIGHT_PARTITION
Constructor Detail |
---|
public SplitNominalBinary(InMemoryTable table, int attributeIndex, SplitQualityMeasure splitQualityMeasure, double minObjectsCount, int maxNumDifferentValues)
table
- the attribute list for which to create the splitattributeIndex
- the index of the attribute for which to calculate
the splitsplitQualityMeasure
- the split quality measure (e.g. gini or gain
ratio)minObjectsCount
- the minimum number of objects in at least two
partitionsmaxNumDifferentValues
- the maximum number of different nominal
values for which all possible subsets are calculated; if above
this threshold, a heuristic is appliedMethod Detail |
---|
public int getNumberPartitions()
getNumberPartitions
in class Split
public boolean canBeFurtherUsed()
canBeFurtherUsed
in class Split
public int getPartitionForRow(DataRowWeighted row)
getPartitionForRow
in class Split
row
- the row for which to get the partition index
public int[] getIntMappingsRightPartition()
public int[] getIntMappingsLeftPartition()
public double[] getPartitionWeights()
getPartitionWeights
in class Split
public static void main(String[] args)
args
- command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |