|
||||||||||
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
@Deprecated public class DecisionTreeNodeSplitNominal
Is replaced by the more general DecisionTreeNodeSplitPMML node.
Constructor Summary | |
---|---|
DecisionTreeNodeSplitNominal()
Deprecated. Empty Constructor visible only within package. |
|
DecisionTreeNodeSplitNominal(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
DecisionTreeNode[] children)
Deprecated. Constructor of base class. |
|
DecisionTreeNodeSplitNominal(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. |
DataCell[] |
getSplitValues()
Deprecated. Returns the values array of this nodes split attribute. |
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.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 |
---|
DecisionTreeNodeSplitNominal()
public DecisionTreeNodeSplitNominal(Node xmlNode, DataCellStringMapper mapper)
xmlNode
- XML node infomapper
- map translating column names to DataCells and vice versapublic DecisionTreeNodeSplitNominal(int nodeId, DataCell majorityClass, LinkedHashMap<DataCell,Double> classCounts, String splitAttribute, DataCell[] splitValues, 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
- the split values used to partition the datachildren
- 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 DecisionTreeNodeSplit
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 DecisionTreeNodeSplit
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 DecisionTreeNodeSplit
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 DecisionTreeNodeSplit
public String getStringSummary()
getStringSummary
in class DecisionTreeNode
public boolean addNodeToTreeDepthFirst(DecisionTreeNode node, int ix)
addNodeToTreeDepthFirst
in class DecisionTreeNodeSplit
node
- node to be insertedix
- index of this node in depth first traversal order
public void saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
saveNodeSplitInternalsToPredParams
in class DecisionTreeNodeSplit
pConf
- configuration object to save decision tree topublic void loadNodeSplitInternalsFromPredParams(ModelContentRO pConf) throws InvalidSettingsException
loadNodeSplitInternalsFromPredParams
in class DecisionTreeNodeSplit
pConf
- configuration object to load decision tree from.
InvalidSettingsException
- if something goes wrongpublic DataCell[] getSplitValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |