- Home /
Recommend a free Neural Network asset
Hello! I'm working on a project involving artificial neural nets. I wouldn't like to start from scratch so I spent some time looking for a good free asset offering basic neural net functionality. Surprisingly, there was nothing that would fulfill my needs.
Could you please recommend a good free asset or just whatever I could use to get ANN's to Unity?
There are, indeed, but I had some trouble with importing them to Unity. For example, Encog and NeuronDotNet dlls couldn't be imported properly. Or did I do anything wrong?
Answer by Bunny83 · Feb 27, 2017 at 03:31 PM
You may use the one i wrote as an answer to another question. It's a general purpose neural network. though it's based on mutation and not on explicit learning rules with backpropergation. It just allows you to create a network as you wish.
Here's a direct link to my dropbox: NeuronalNetwork.cs
Note that this framework only implements a feed-forward network. It doesn't allow "loops". Also each layer is simply fully connected to the next. There are at least one input and one output layer. You can specify as many hidden layers you like.
Those are the example on my other answers:
// 2 inputs, 1 outputs, 3 neurons in the first hidden layer, 5 in the second hidden layer and 2 in the third.
network = new NeuronalNetwork(2, 1, 3, 5, 2);
// 4 inputs, 2 outputs, 5 neurons in the hidden layer
network = new NeuronalNetwork(4, 2, 5);
Oh there was another question on ANNs where i also posted a link to my implementation. There you might get a better idea how it looks like.
ps: Yes, i know it's called a "neural network" in english but "Neuronales Netzwerk" in german, So the class name ended up as some english-german mix ^^.
Answer by SuperMasterBlasterLaser · Apr 13, 2015 at 10:37 AM
I don't know how Neural network works, but I assume that you neural network will do calculation and your Unity project will output information. I think you need to create separate application on C# or Java that has libs for neural networking and your Unity project will send your input via WWW or Sockets and get output.
A neural network isn't a network of computer, it's a network of neurons: a brain simulator if you wish. There is no need for sockets or whatever, it's just a bit of mathematics and data structures, which can be (and has been) implemented in Unity.
Answer by NirielNabokov · Feb 27, 2017 at 02:28 PM
You might be interested in contacting the author of this video, who implemented neural networks in Unity: https://www.youtube.com/watch?v=0UAt4cKDw1E . As he did this as an experiment, he may be willing to share his code.
It's been 2 years since the OP asked this question, and well over a year since they last logged onto Unity Answers. I think it's fair to say they may no longer be working on this project....
We are not responding to OP anymore, we are responding to anyone who, like me, lands on this page when looking for the same answer. This question has five followers, not just OP. And one (Bunny83) just chimed in with a neat answer, so this is pretty useful.
Your answer
![](https://koobas.hobune.stream/wayback/20220613192816im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help implement such attacks 1 Answer
How to destory ai dead bodies in paragon shooter ai? 0 Answers
i need a simple dynamic AI system ? 0 Answers