Click here to Skip to main content
12,752,040 members (30,469 online)
Click here to Skip to main content

Tagged as

Stats

46.4K views
850 downloads
14 bookmarked
Posted 3 Jun 2010

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 java.text.NumberFormat;

public class Stopwatch {
	public static void time(String title, Benchmarkable run)
	{
		GenerateData data = new GenerateData();
		data.generate(10000, Benchmark.INPUT_COUNT, Benchmark.OUTPUT_COUNT, -1, 1);
		double[][] input = data.getInput();
		double[][] ideal = data.getIdeal();
		run.prepareBenchmark(input, ideal);

		long started = System.currentTimeMillis();
		run.benchmark(50);
		long finish = System.currentTimeMillis();
		long elapsed = finish-started;
		double e2 = elapsed/1000.0;
		NumberFormat f = NumberFormat.getNumberInstance();
		f.setMinimumFractionDigits(4);
		f.setMaximumFractionDigits(4);
		System.out.println(f.format(e2) + " seconds for " + title );
	}
}

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...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170217.1 | Last Updated 3 Jun 2010
Article Copyright 2010 by taheretaheri
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid