|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Node | |
---|---|
net.sf.myra.antree | |
net.sf.myra.antree.representation |
Uses of Node in net.sf.myra.antree |
---|
Methods in net.sf.myra.antree with parameters of type Node | |
---|---|
double |
ErrorBasedMetric.error(Node node,
Statistics statistics)
Returns the predicted error of the subtree represented by the specified node. |
double |
ErrorBasedMetric.rawError(Node node,
Statistics statistics)
Returns the (raw) error of the subtree represented by the specified node. |
Uses of Node in net.sf.myra.antree.representation |
---|
Subclasses of Node in net.sf.myra.antree.representation | |
---|---|
class |
InternalNode
|
class |
LeafNode
|
Methods in net.sf.myra.antree.representation that return Node | |
---|---|
Node |
Node.clone()
|
static Node |
NodeFactory.create(net.sf.myra.datamining.data.Attribute attribute,
net.sf.myra.datamining.data.Dataset dataset,
int level)
Creates a new node (internal or leaf) according to the type of the specified attribute. |
static Node |
NodeFactory.create(net.sf.myra.datamining.data.Attribute attribute,
net.sf.myra.datamining.data.Metadata metadata,
java.util.List<net.sf.myra.datamining.data.Instance> instances,
int level)
Creates a new node (internal or leaf) according to the type of the specified attribute. |
Node |
Tree.get(int index)
Returns a node of the tree specified by its index. |
Node |
Branch.getFrom()
Returns the node where this branch originates. |
Node |
Node.getParent()
Returns the parent node of this node. |
Node |
Tree.getRoot()
Returns the root of the tree. |
Node |
Branch.getTo()
Returns the node that this branch leads to. |
Methods in net.sf.myra.antree.representation with parameters of type Node | |
---|---|
Branch |
Tree.getBranch(Node node)
Returns the branch leading to the specified node. |
Branch |
Node.getBranch(Node node)
Returns the branch that leads to the specified node. |
double[] |
Statistics.getDistribution(Node node)
Returns the class distribution of the specified node. |
double |
Statistics.getErrors(Node node,
net.sf.myra.datamining.data.Label prediction)
Returns the error rate at the specified node given a prediction. |
int |
Tree.getIndex(Node node)
Returns the index of the specified node. |
net.sf.myra.datamining.data.Label |
Statistics.getMajorityLabel(Node node)
Returns the majority class label for the specified node. |
double |
Statistics.getTotal(Node node)
Returns the total number of instances reaching the specified node. |
void |
Statistics.setDistribution(Node node,
double[] distribution)
Sets the class distribution of the specified node. |
void |
Branch.setFrom(Node from)
Sets the node where this branch originates. |
void |
Tree.setRoot(Node root)
Sets the root node of the tree. |
void |
Branch.setTo(Node to)
Sets the node that this branch leads to. |
Method parameters in net.sf.myra.antree.representation with type arguments of type Node | |
---|---|
java.util.Collection<java.lang.Integer> |
Tree.indexes(java.lang.Class<? extends Node> type)
Returns the indexes of nodes. |
Constructors in net.sf.myra.antree.representation with parameters of type Node | |
---|---|
Tree(Node root)
Creates a new tree. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |