The Encog Project

org.encog.util.benchmark
Class RandomTrainingFactory

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

public final class RandomTrainingFactory
extends java.lang.Object

Class used to generate random training sets. This will always generate the same number outputs, as it always uses the same seed values. This allows for the consistent results needed by the benchmark.


Method Summary
static NeuralDataSet generate(int count, int inputCount, int idealCount, double min, double max)
          Generate a random training set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public static NeuralDataSet generate(int count,
                                     int inputCount,
                                     int idealCount,
                                     double min,
                                     double max)
Generate a random training set.

Parameters:
count - How many training items to generate.
inputCount - How many input numbers.
idealCount - How many ideal numbers.
min - The minimum random number.
max - The maximum random number.
Returns:
The random training set.

The Encog Project