net.sf.myra.datamining
Class ErrorBasedMetric

java.lang.Object
  extended by net.sf.myra.datamining.ErrorBasedMetric

public class ErrorBasedMetric
extends java.lang.Object

This class provides the error estimation based on the metric used by C4.5.

Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String CONFIDENCE_LEVEL
          The property key under which the reduced-error confidence level is stored.
 
Method Summary
static double errors(double error, double total)
          Returns the number of predicted errors.
static double estimate(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

CONFIDENCE_LEVEL

public static final java.lang.String CONFIDENCE_LEVEL
The property key under which the reduced-error confidence level is stored.

See Also:
Constant Field Values
Method Detail

estimate

public static double estimate(double error,
                              double total)
Returns the estimate error rate value based on the upper confidence level. This implementation is based on the C4.5 algorithm.

Parameters:
error - the number of misclassified instances.
total - the total number of instances.
Returns:
the estimate error rate value.

errors

public static double errors(double error,
                            double total)
Returns the number of predicted errors. This implementation is based on the C4.5 algorithm.

Parameters:
error - the number of misclassified instances.
total - the total number of instances.
Returns:
the estimate error rate value.


Copyright © 2013. All Rights Reserved.