org.encog.util.benchmark
Class Evaluate
- java.lang.Object
-
- org.encog.util.benchmark.Evaluate
-
public final class Evaluate extends java.lang.ObjectUsed to evaluate the training time for a network.
-
-
Field Summary
Fields Modifier and Type Field and Description static intMILISMili-seconds in a second.
-
Constructor Summary
Constructors Constructor and Description Evaluate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intevaluateTrain(BasicNetwork network, MLDataSet training)Evaluate how long it takes to calculate the error for the network.static intevaluateTrain(int input, int hidden1, int hidden2, int output)
-
-
-
Field Detail
-
MILIS
public static final int MILIS
Mili-seconds in a second.- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluateTrain
public static int evaluateTrain(int input, int hidden1, int hidden2, int output)
-
evaluateTrain
public static int evaluateTrain(BasicNetwork network, MLDataSet 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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG