Click here to Skip to main content
11,709,581 members (55,896 online)
Click here to Skip to main content
Add your own
alternative version

Benchmarking and Comparing Encog, Neuroph and JOONE Neural Networks

, 3 Jun 2010 LGPL3 38K 768 12
I compare the performance of Encog, Neuroph and JOONE


 * 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.
public class GenerateData {

	private double[][] ideal;
	private double[][] input;

	private double randomRange(double min,double max)
		double n = max - min + 1;
		double i = Math.random() % n;
		return  min + i;


	public void generate(final int count, final int inputCount,
			final int idealCount, final double min, final double max) {

		this.input = new double[count][inputCount];
		this.ideal = new double[count][idealCount];

		for (int i = 0; i < count; i++) {

			for (int j = 0; j < inputCount; j++) {
				input[i][j] = randomRange(min,max);

			for (int j = 0; j < idealCount; j++) {
				ideal[i][j] = randomRange(min, max);

	public double[][] getInput() {
		return this.input;

	public double[][] getIdeal() {
		return this.ideal;


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


About the Author

Other Rutgers University
United States United States
Hello, I am a student at Rutgers University. I am in computer science and am learning about machine learning and AI.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 3 Jun 2010
Article Copyright 2010 by taheretaheri
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid