com.rapidminer.operator.learner.subgroups.utility
Class Accuracy

java.lang.Object
  extended by com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
      extended by com.rapidminer.operator.learner.subgroups.utility.Accuracy

public class Accuracy
extends UtilityFunction

Calculates accuracy.

Author:
Tobias Malbrecht

Field Summary
 
Fields inherited from class com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
ACCURACY, BIAS, BINOMIAL, COVERAGE, FUNCTIONS, LIFT, NEGATIVE_CLASS, ODDS, ODDS_RATIO, POSITIVE_CLASS, PRECISION, SQUARED, totalNegativeWeight, totalPositiveWeight, totalWeight, WRACC
 
Constructor Summary
Accuracy(double totalWeight, double totalPositiveWeight)
           
 
Method Summary
 java.lang.String getAbbreviation()
           
 java.lang.String getName()
           
 double optimisticEstimate(Hypothesis hypothesis)
           
 double utility(Rule rule)
           
 
Methods inherited from class com.rapidminer.operator.learner.subgroups.utility.UtilityFunction
getTotalNegativeWeight, getTotalPositiveWeight, getTotalWeight, getUtilityFunction, getUtilityFunctionClass, getUtilityFunctionClasses, getUtilityFunctions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Accuracy

public Accuracy(double totalWeight,
                double totalPositiveWeight)
Method Detail

utility

public double utility(Rule rule)
Specified by:
utility in class UtilityFunction

optimisticEstimate

public double optimisticEstimate(Hypothesis hypothesis)
Specified by:
optimisticEstimate in class UtilityFunction

getName

public java.lang.String getName()
Specified by:
getName in class UtilityFunction

getAbbreviation

public java.lang.String getAbbreviation()
Specified by:
getAbbreviation in class UtilityFunction


Copyright © 2001-2009 by Rapid-I