Suggested resource for coding neural networks in Java from scratch?
June 9, 2007 9:53 PM

I would like to know what a good resource would be to help me code neural networks in Java from scratch. The best I could find was this resource: http://www.mathtools.net/Java/Neural_Networks/ I have Neural Networks by Haykin as well as Simulating Neural Networks with Mathematica.
posted by zzztimbo to Computers & Internet (7 answers total) 6 users marked this as a favorite
Matlab? I do not know Java (it's a kind of coffee, no?) but, I do NN and it is pretty straightforward, matlab gives you the source code which you can easily convert to whatever you want. Maybe like this?
posted by carmina at 10:09 PM on June 9, 2007


There are lots of books and libraries in C that would be translatable to java fairly easily. I've done NN implementations in several languages, basically you just need to code a way to do matrix math and you're done (because once you have yourself a little "matrix" library you can update all the weights using standard NN formulae).

That's why matlab is so good, it has pretty good matrix manipulation built in.
posted by RustyBrooks at 10:34 PM on June 9, 2007


Check out Daniel Shiffman's page on Neural Networks. It has sample code in Processing, which is essentially Java with a few built-in niceties.
posted by aparrish at 11:17 PM on June 9, 2007


Here's the Idiot's Guide and some sample code. Also: Introduction to Neural Networks with Java
posted by obedo at 11:28 PM on June 9, 2007


Matlab can generate java code for your trained networks automatically.
posted by Osmanthus at 11:34 PM on June 9, 2007


Regarding the "Introduction To Neural Networks with Java" book that obedo suggested - I really don't recommend this. The book is very lightweight and uses external libraries rather than explaining how to code NNs from scratch.

To be honest, I never found a good book for Java - I ended up working with C instead. Good luck though!
posted by mogotron at 11:04 AM on June 10, 2007


Dear mogotron, what reference book did you use for coding up NN's in C?
posted by zzztimbo at 1:23 PM on June 11, 2007


« Older best way to clone an OS from a drive to a...   |   Should I consider a car with a manual transmission... Newer »
This thread is closed to new comments.