public class CART extends DirectedGraph
featDef, logger, properties, rootNode
Constructor and Description |
---|
CART()
Build a new empty cart
|
CART(FeatureDefinition featDef)
Build a new empty cart with the given feature definition.
|
CART(Node rootNode,
FeatureDefinition featDef)
Build a new cart with the given node as the root node
|
CART(Node rootNode,
FeatureDefinition featDef,
Properties properties)
Build a new cart with the given node as the root node
|
Modifier and Type | Method and Description |
---|---|
Object |
interpret(Target target,
int minNumberOfData)
Passes the given item through this CART and returns the interpretation.
|
Node |
interpretToNode(FeatureVector featureVector,
int minNumberOfData)
Passes the given item through this CART and returns the leaf Node, or the Node it stopped walking down.
|
Node |
interpretToNode(Target target,
int minNumberOfData)
Passes the given item through this CART and returns the leaf Node, or the Node it stopped walking down.
|
static Node |
replaceLeafByCart(CART cart,
LeafNode leaf)
In this tree, replace the given leaf with the given CART
|
getDecisionNodeIterator, getDecisionNodes, getDirectedGraphNodeIterator, getDirectedGraphNodes, getFeatureDefinition, getLeafNodeIterator, getLeafNodes, getNodeIterator, getNodes, getNumNodes, getProperties, getRootNode, interpret, interpret, interpret, setRootNode, toString
public CART()
public CART(FeatureDefinition featDef)
featDef
- featDefpublic CART(Node rootNode, FeatureDefinition featDef)
rootNode
- the root node of the CARTfeatDef
- the feature definition used for interpreting the meaning of decision node criteria.public CART(Node rootNode, FeatureDefinition featDef, Properties properties)
rootNode
- the root node of the CARTfeatDef
- the feature definition used for interpreting the meaning of decision node criteria.properties
- a generic properties object, which can be used to encode information about the tree and the way the data in it
should be represented.public Node interpretToNode(Target target, int minNumberOfData)
target
- the target to analyzeminNumberOfData
- the minimum number of data requested. If this is 0, walk down the CART until the leaf level.public Node interpretToNode(FeatureVector featureVector, int minNumberOfData)
featureVector
- the target to analyzeminNumberOfData
- the minimum number of data requested. If this is 0, walk down the CART until the leaf level.public Object interpret(Target target, int minNumberOfData)
target
- the target to analyzeminNumberOfData
- the minimum number of data requested. If this is 0, walk down the CART until the leaf level.Copyright © 2000–2016 DFKI GmbH. All rights reserved.