|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antree.ErrorBasedMetric
public class ErrorBasedMetric
Field Summary | |
---|---|
static java.lang.String |
CONFIDENCE_LEVEL
The property key under which the reduced-error pruner confidence level is stored. |
Constructor Summary | |
---|---|
ErrorBasedMetric()
Default constructor. |
Method Summary | |
---|---|
double |
error(Node node,
Statistics statistics)
Returns the predicted error of the subtree represented by the specified node. |
static ErrorBasedMetric |
getInstance()
Returns the singleton instance. |
double |
rawError(Node node,
Statistics statistics)
Returns the (raw) error of the subtree represented by the specified node. |
double |
ucf(double error,
double total)
Returns the estimate error rate value based on the upper confidence level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIDENCE_LEVEL
Constructor Detail |
---|
public ErrorBasedMetric()
Method Detail |
---|
public double error(Node node, Statistics statistics)
node
- the node reference.statistics
- the statistics of the node.
public double rawError(Node node, Statistics statistics)
node
- the node reference.statistics
- the statistics of the node.
public double ucf(double error, double total)
error
- the number of misclassified instances.total
- the total number of instances.
public static ErrorBasedMetric getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |