|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antree.representation.Statistics
public class Statistics
Constructor Summary | |
---|---|
Statistics(net.sf.myra.datamining.data.Metadata metadata)
Default constructor. |
Method Summary | |
---|---|
double[] |
getDistribution(Node node)
Returns the class distribution of the specified node. |
double |
getErrors(Node node,
net.sf.myra.datamining.data.Label prediction)
Returns the error rate at the specified node given a prediction. |
net.sf.myra.datamining.data.Label |
getMajority()
Returns the majority class label. |
net.sf.myra.datamining.data.Label |
getMajorityLabel(Node node)
Returns the majority class label for the specified node. |
double |
getTotal(Node node)
Returns the total number of instances reaching the specified node. |
void |
setDistribution(Node node,
double[] distribution)
Sets the class distribution of the specified node. |
void |
setMajority(net.sf.myra.datamining.data.Label majority)
Sets the majority class label. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics(net.sf.myra.datamining.data.Metadata metadata)
metadata
- the current data set metadata.Method Detail |
---|
public double[] getDistribution(Node node)
node
- the node reference.
public void setDistribution(Node node, double[] distribution)
node
- the node reference.distribution
- the distribution to set.public net.sf.myra.datamining.data.Label getMajority()
public void setMajority(net.sf.myra.datamining.data.Label majority)
majority
- the majority class label to set.public double getTotal(Node node)
node
- the node reference.
public net.sf.myra.datamining.data.Label getMajorityLabel(Node node)
node
- the node reference.
public double getErrors(Node node, net.sf.myra.datamining.data.Label prediction)
node
- the node reference.prediction
- the prediction at the node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |