|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.decisiontree2.model.DecisionTreeNode
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplit
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplitNominal
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplitNominalBinary
@Deprecated public class DecisionTreeNodeSplitNominalBinary
Is replaced by the more general DecisionTreeNodeSplitPMML node. Represents a nominal split node that splits subsets of values in a binary manner.
Constructor Summary | |
---|---|
DecisionTreeNodeSplitNominalBinary()
Deprecated. Empty Constructor visible only within package. |
|
DecisionTreeNodeSplitNominalBinary(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
int[] splitMappingsLeft,
int[] splitMappingsRight,
DecisionTreeNode[] children)
Deprecated. Constructor for a nominal split in binary format. |
|
DecisionTreeNodeSplitNominalBinary(Node xmlNode,
DataCellStringMapper mapper)
Deprecated. Constructor of derived class. |
Method Summary | |
---|---|
void |
addCoveredColor(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
Deprecated. Add colors for a pattern given as a row of values. |
void |
addCoveredPattern(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
Deprecated. Add patterns given as a row of values if they fall within a specific node. |
boolean |
addNodeToTreeDepthFirst(DecisionTreeNode node,
int ix)
Deprecated. Add a new node to the tree structure based on a depth-first indexing strategy. |
Set<RowKey> |
coveredPattern()
Deprecated. |
LinkedHashMap<DataCell,Double> |
getClassCounts(DataCell cell,
DataRow row,
DataTableSpec spec)
Deprecated. Determine class counts for a new pattern given as a row of values. |
List<Integer> |
getLeftChildIndices()
Deprecated. |
List<Integer> |
getRightChildIndices()
Deprecated. |
String |
getStringSummary()
Deprecated. |
void |
loadNodeSplitInternalsFromPredParams(ModelContentRO pConf)
Deprecated. Load internal SplitNode settings from a ModelContent object. |
void |
saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
Deprecated. save internal SplitNode settings to a ModelContent object. |
Methods inherited from class org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplitNominal |
---|
getSplitValues |
Methods inherited from class org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplit |
---|
addCoveredColor, addCoveredPattern, addNode, children, getAllowsChildren, getChildAt, getChildCount, getChildNodeAt, getChildren, getClassCounts, getCountOfSubtree, getIndex, getMVStrategy, getNodeClassWeights, getNTCStrategy, getSplitAttr, isLeaf, loadNodeInternalsFromPredParams, makeRoomForKids, replaceChild, saveNodeInternalsToPredParams, setChildNodeIndex, setMVStrategy, setNTCStrategy |
Methods inherited from class org.knime.base.node.mine.decisiontree2.model.DecisionTreeNode |
---|
addColorToMap, classifyPattern, coveredColors, createNewNode, createNodeFromPredictorParams, getClassCounts, getCustomData, getEntireClassCount, getMajorityClass, getOverallColorCount, getOwnClassCount, getOwnIndex, getParent, getPrefix, getWinner, loadFromPredictorParams, newColors, resetColorInformation, saveToPredictorParams, setCoveredColors, setCustomData, setParent, setPrefix, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
DecisionTreeNodeSplitNominalBinary()
public DecisionTreeNodeSplitNominalBinary(Node xmlNode, DataCellStringMapper mapper)
xmlNode
- XML node infomapper
- map translating column names to DataCells and vice versapublic DecisionTreeNodeSplitNominalBinary(int nodeId, DataCell majorityClass, LinkedHashMap<DataCell,Double> classCounts, String splitAttribute, DataCell[] splitValues, int[] splitMappingsLeft, int[] splitMappingsRight, DecisionTreeNode[] children)
nodeId
- the id of this nodemajorityClass
- the majority class of the records in this nodeclassCounts
- the class distribution of the data in this nodesplitAttribute
- the attribute name on which to splitsplitValues
- all nominal split values in the order of their integer
mappingsplitMappingsLeft
- the integer mapping values for the nominal
values that fall into the left partitionsplitMappingsRight
- the integer mapping values for the nominal
values that fall into the right partitionchildren
- the children split according to the split valuesMethod Detail |
---|
public LinkedHashMap<DataCell,Double> getClassCounts(DataCell cell, DataRow row, DataTableSpec spec) throws Exception
getClassCounts
in class DecisionTreeNodeSplitNominal
cell
- the call to be used for classification at this noderow
- input patternspec
- the corresponding table spec
Exception
- if something went wrong (unknown attriubte for example)public void addCoveredPattern(DataCell cell, DataRow row, DataTableSpec spec, double weight) throws Exception
addCoveredPattern
in class DecisionTreeNodeSplitNominal
cell
- the cell to be used for classification at this noderow
- input patternspec
- the corresponding table specweight
- the weight of this row (between 0.0 and 1.0)
Exception
- if something went wrong (unknown attribute for example)public void addCoveredColor(DataCell cell, DataRow row, DataTableSpec spec, double weight) throws Exception
addCoveredColor
in class DecisionTreeNodeSplitNominal
cell
- the cell to be used for the split at this levelrow
- input patternspec
- the corresponding table specweight
- the weight of the row (between 0.0 and 1.0)
Exception
- if something went wrong (unknown attriubte for example)public Set<RowKey> coveredPattern()
coveredPattern
in class DecisionTreeNodeSplitNominal
public String getStringSummary()
getStringSummary
in class DecisionTreeNodeSplitNominal
public boolean addNodeToTreeDepthFirst(DecisionTreeNode node, int ix)
addNodeToTreeDepthFirst
in class DecisionTreeNodeSplitNominal
node
- node to be insertedix
- index of this node in depth first traversal order
public void saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
saveNodeSplitInternalsToPredParams
in class DecisionTreeNodeSplitNominal
pConf
- configuration object to save decision tree topublic void loadNodeSplitInternalsFromPredParams(ModelContentRO pConf) throws InvalidSettingsException
loadNodeSplitInternalsFromPredParams
in class DecisionTreeNodeSplitNominal
pConf
- configuration object to load decision tree from.
InvalidSettingsException
- if something goes wrongpublic List<Integer> getLeftChildIndices()
public List<Integer> getRightChildIndices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |