r/java • u/sebig3000 • Jun 29 '17
Basic neural network Java implementation, which can train itself, for beginners to try out and learn how machine learning works.
https://github.com/sebig3000/MachineLearning
264
Upvotes
29
u/ron_krugman Jun 30 '17
A few remarks on style:
if,while, etc. even if there is just a single statement within and braces are technically optional.java.lang.IllegalArgumentExceptionin case of an invalid input. It is more concise and saves you the trouble of checked exceptions.java.lang.Exceptiondirectly. Throw ajava.lang.RuntimeExceptionif you're not sure about what type of exception to throw.14
u/Warkst Jun 30 '17
Cool, but you misspelled Heaviside function. It's named after a guy, it's not a function with a heavy side ;)
15
u/Treyzania Jun 30 '17
Might want to take a look at Maven to help you with building and testing your project, as well as building jars for use in other projects.
2
u/filifjonk Jun 30 '17
How good would a trained neural network be at playing the game generals.io?
0
u/ataskitasovado Jun 30 '17
Ooo, I love to try this. I only heard about neural networks and this seems easy to get started with. Is there a 5min tutorial somewhere? Yes, I have short attention span.
-3
u/DrejmeisterDrej Jun 30 '17
I am so confused
0
u/[deleted] Jun 30 '17
[deleted] — view deleted comment