-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hidden Layers on Neat #242
Comments
Thanks for your question @millefh ! Neural networks in Carrot, as well as Neataptic and Synaptic (the source of both libraries), are architecture free this basically means that although you can construct neural networks with layers like this:
Once the network is constructed there is no specific "layer" that a neuron exists in, in fact, they are all stored in one common array on the network prototype: This has a BIG benefit to evolving networks as far as how complex the library is because we don't have to worry where a neuron is in terms of a layer, instead we (the algorithm) can just add or remove neurons as needed and the network will operate perfectly fine.
The If you wanted to create a network with specific "layer" structures of different kinds you could do something like this example:
And then pass I hope I was able to answer all of your questions! |
Thank you so much for you fast and informative answer! Is it possible to use Layer without requiring carrot using Node.js? Which gives an error when trying to make a new Layer |
For the TypeScript version it's slightly different, I believe the correct way would be to do https://raimannma.github.io/carrot/classes/denselayer.html#constructor I would reference these while using the TypeScript version as these document the latest API. I'll be updating the README to point to this as well so that newcomers can try it directly Thanks again for asking! |
Awesome! I have been having a lot of fun playing around with Carrot the past few days. Keep up the good work and thank you for your help. 👍 |
Is it possible to create hidden layers in Neat Networks? It seems as it was possible in Neataptic, if it is not a feature, is there a specific reason for it?
I been trying out the network option when creating a new neat but it seems to do no difference in structure or otherwise.
The text was updated successfully, but these errors were encountered: