yawn.util
Class DefaultStatisticsFacility

java.lang.Object
  extended by yawn.util.DefaultStatisticsFacility
All Implemented Interfaces:
StatisticsFacility

public class DefaultStatisticsFacility
extends java.lang.Object
implements StatisticsFacility

This is yawn.util.DefaultStatisticsFacility, part of the yawn project.
$Id: DefaultStatisticsFacility.java,v 1.2 2005/04/07 17:28:30 supermarti Exp $

Version:
$Revision: 1.2 $
Author:
Luis Martí (luis dot marti at uc3m dot es)

Constructor Summary
DefaultStatisticsFacility()
           
 
Method Summary
protected static void checkDimensions(java.lang.Object[] desired, java.lang.Object[] predictions)
           
 double computePredictionError(NeuralNetwork network, InputOutputPattern[] set)
          Calculates the prediction error as the mean squared error
protected  Pattern[] getPredictions(NeuralNetwork net, InputOutputPattern[] set)
           
 double meanSquaredError(InputOutputPattern[] set, Pattern[] predictions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStatisticsFacility

public DefaultStatisticsFacility()
Method Detail

computePredictionError

public double computePredictionError(NeuralNetwork network,
                                     InputOutputPattern[] set)
Calculates the prediction error as the mean squared error

Specified by:
computePredictionError in interface StatisticsFacility
See Also:
StatisticsFacility.computePredictionError(yawn.nn.NeuralNetwork, yawn.util.InputOutputPattern[])

checkDimensions

protected static void checkDimensions(java.lang.Object[] desired,
                                      java.lang.Object[] predictions)

meanSquaredError

public double meanSquaredError(InputOutputPattern[] set,
                               Pattern[] predictions)
Parameters:
desired -
predictions -
Returns:
the mean squared error

getPredictions

protected Pattern[] getPredictions(NeuralNetwork net,
                                   InputOutputPattern[] set)


Copyright © 2003-2005 GIAA, Universidad Carlos III de Madrid. All Rights Reserved.