The Encog Project

org.encog.util.benchmark
Class Evaluate

java.lang.Object
  extended by org.encog.util.benchmark.Evaluate

public final class Evaluate
extends java.lang.Object

Used to evaluate the training time for a network.

Author:
jheaton

Field Summary
static double MILIS
          Mili-seconds in a second.
static int TRYS
          How many times to try.
 
Method Summary
static double evaluateNetwork(BasicNetwork network, NeuralDataSet training)
          Evaluate how long it takes to calculate the error for the network.
static double evaluateTrain(BasicNetwork network, NeuralDataSet training)
          Evaluate how long it takes to calculate the error for the network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MILIS

public static final double MILIS
Mili-seconds in a second.

See Also:
Constant Field Values

TRYS

public static final int TRYS
How many times to try.

See Also:
Constant Field Values
Method Detail

evaluateNetwork

public static double evaluateNetwork(BasicNetwork network,
                                     NeuralDataSet training)
Evaluate how long it takes to calculate the error for the network. This causes each of the training pairs to be run through the network. The network is evaluated 10 times and the lowest time is reported.

Parameters:
network - The network to evaluate with.
training - The training data to use.
Returns:
The lowest number of seconds that each of the ten attempts took.

evaluateTrain

public static double evaluateTrain(BasicNetwork network,
                                   NeuralDataSet training)
Evaluate how long it takes to calculate the error for the network. This causes each of the training pairs to be run through the network. The network is evaluated 10 times and the lowest time is reported.

Parameters:
network - The network to evaluate with.
training - The training data to use.
Returns:
The lowest number of seconds that each of the ten attempts took.

The Encog Project