r/javascript • u/joshuaamdamian • 15d ago
Browser based AI algorithm
https://github.com/joshuadam/NEAT-JavaScriptI recreated an AI algorithm that visually learns in the browser:) It's based on the NEAT algorithm:
https://github.com/joshuadam/neat-javascript
https://neat-javascript.org/
1
Upvotes
2
u/joshuaamdamian 14d ago
Cool that you are so excited about the algorithm! It's really interesting for sure.
u/lonelycprogrammer already explained it well but for some extra info:
I highly recommend reading the original paper called "Evolving Neural Networks through Augmenting Topologies" by Kenneth O. Stanley and Risto Miikkulainen.
It is a beautiful algorithm that is quite easy to follow and understand, it is based on evolution. Like already mentioned, the algorithm starts of with tiny networks, and slowly adjusts and grows these networks. Adds nodes, connections, "mutate" weights etc.
It's very interesting to see this happening in real time.
The algorithm basically consists of:
There is of course more to it but this is what it comes down to!
It is a very interesting and cool algorithm to me. Evolution has been a core aspect of our own development, it would only make sense to prove useful for Artificial Intelligence as well. It's awesome to see others feel the same!
And like u/ufukty mentioned I highly recommend watching the MarI/O video from SethBling too, it's awesome!
Thanks!