org.encog.util.benchmark
Class RandomTrainingFactory
- java.lang.Object
-
- org.encog.util.benchmark.RandomTrainingFactory
-
public final class RandomTrainingFactory extends java.lang.ObjectClass 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
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static BasicMLDataSetgenerate(long seed, int count, int inputCount, int idealCount, double min, double max)Generate a random training set.static voidgenerate(MLDataSet training, long seed, int count, double min, double max)Generate random training into a training set.
-
-
-
Method Detail
-
generate
public static BasicMLDataSet generate(long seed, int count, int inputCount, int idealCount, double min, double max)
Generate a random training set.- Parameters:
seed- The seed value to use, the same seed value will always produce the same results.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.
-
generate
public static void generate(MLDataSet training, long seed, int count, double min, double max)
Generate random training into a training set.- Parameters:
training- The training set to generate into.seed- The seed to use.count- How much data to generate.min- The low random value.max- The high random value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG