Click here to Skip to main content
12,244,700 members (53,359 online)
Click here to Skip to main content

Tagged as

Stats

41.8K views
809 downloads
14 bookmarked
Posted

Benchmarking and Comparing Encog, Neuroph and JOONE Neural Networks

, 3 Jun 2010 LGPL3
I compare the performance of Encog, Neuroph and JOONE
benchmark
encog-core-2.4.0.jar
joone-engine.jar
neuroph.jar
slf4j-api-1.5.6.jar
slf4j-jdk14-1.5.6.jar
import org.encog.util.logging.Logging;

public class Benchmark {

	public static final int INPUT_COUNT = 10;
	public static final int HIDDEN_COUNT = 20;
	public static final int OUTPUT_COUNT = 10;
	public static final int TRAINING_SIZE = 10000;

	public static final double LEARNING_RATE = 0.7;
	public static final double MOMENTUM = 0.7;
	public static final int ITERATIONS = 50;

	public static void performBenchmark(Benchmarkable benchmark)
	{
		GenerateData data = new GenerateData();
		data.generate(10000, Benchmark.INPUT_COUNT, Benchmark.OUTPUT_COUNT, -1, 1);
		double[][] input = data.getInput();
		double[][] ideal = data.getIdeal();
		benchmark.prepareBenchmark(input, ideal);
	}

	public static void main(String args[])
	{
		Logging.stopConsoleLogging();


		if( "encog".equalsIgnoreCase(args[0]))
		{
			Stopwatch.time("Encog", new BenchmarkEncog(0));
		}
		else if( "encog1".equalsIgnoreCase(args[0]))
		{
			Stopwatch.time("Encog", new BenchmarkEncog(1));
		}
		else if( "neuroph".equalsIgnoreCase(args[0]))
		{
			Stopwatch.time("Neuroph", new BenchmarkNeuroph());
		}
		else if( "joone".equalsIgnoreCase(args[0]))
		{
			Stopwatch.time("JOONE", new BenchmarkJOONE(false));
		}
		else if( "joone1".equalsIgnoreCase(args[0]))
		{
			Stopwatch.time("JOONE1", new BenchmarkJOONE(true));
		}

		System.exit(0);
	}
}

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.

License

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

Share

About the Author

taheretaheri
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
Web02 | 2.8.160426.1 | Last Updated 3 Jun 2010
Article Copyright 2010 by taheretaheri
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid