gov.sandia.cognition.learning.performance
Class RootMeanSquaredErrorEvaluator<InputType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.performance.AbstractSupervisedPerformanceEvaluator<InputType,Double,Double,Double>
          extended by gov.sandia.cognition.learning.performance.RootMeanSquaredErrorEvaluator<InputType>
Type Parameters:
InputType - The type of the input to the evaluator to compute the performance of.
All Implemented Interfaces:
PerformanceEvaluator<Evaluator<? super InputType,? extends Double>,Collection<? extends InputOutputPair<InputType,Double>>,Double>, SupervisedPerformanceEvaluator<InputType,Double,Double,Double>, CloneableSerializable, Summarizer<TargetEstimatePair<? extends Double,? extends Double>,Double>, Serializable, Cloneable

public class RootMeanSquaredErrorEvaluator<InputType>
extends AbstractSupervisedPerformanceEvaluator<InputType,Double,Double,Double>

The RootMeanSquaredErrorEvaluator class implements a method for computing the performance of a supervised learner for a scalar function by the root mean squared error (RMSE or RSE) between the target and estimated outputs.

Since:
2.0
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
RootMeanSquaredErrorEvaluator()
          Creates a new RootMeanSquaredErrorEvaluator.
 
Method Summary
static double compute(Collection<? extends TargetEstimatePair<? extends Double,? extends Double>> data)
          Computes the mean squared error for the given pairs of values.
 Double evaluatePerformance(Collection<? extends TargetEstimatePair<? extends Double,? extends Double>> data)
          Evaluates the performance accuracy of the given estimates against the given targets.
 
Methods inherited from class gov.sandia.cognition.learning.performance.AbstractSupervisedPerformanceEvaluator
evaluatePerformance, summarize
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

RootMeanSquaredErrorEvaluator

public RootMeanSquaredErrorEvaluator()
Creates a new RootMeanSquaredErrorEvaluator.

Method Detail

evaluatePerformance

public Double evaluatePerformance(Collection<? extends TargetEstimatePair<? extends Double,? extends Double>> data)
Evaluates the performance accuracy of the given estimates against the given targets.

Specified by:
evaluatePerformance in interface SupervisedPerformanceEvaluator<InputType,Double,Double,Double>
Specified by:
evaluatePerformance in class AbstractSupervisedPerformanceEvaluator<InputType,Double,Double,Double>
Parameters:
data - The target-estimate pairs to use to evaluate performance.
Returns:
The performance evaluation result.

compute

public static double compute(Collection<? extends TargetEstimatePair<? extends Double,? extends Double>> data)
Computes the mean squared error for the given pairs of values. The squared difference between the two values in each pair is computed and then the mean over all the values is returned.

Parameters:
data - The data to compute the mean squared error over.
Returns:
The mean squared error.