ml5js / ml5-library

Friendly machine learning for the web! 🤖
https://ml5js.org
Other
6.48k stars 902 forks source link

Reinforcement Learning or genetic evolution example in ml5.js #1412

Closed surajvofox closed 2 years ago

surajvofox commented 2 years ago

Hi , first of all ml5 js is just awesome and easy. My doubt is is it possible to do reinforcement learning or genetic evolution in ml5 js. If so is there any example regarding that? Dan's falppy bird evolution will be good if its ported to ml5.js

lindapaiste commented 2 years ago

We do a few examples including Dan's flappy bird evolution. They are listed under the NeuralNetwork section on the examples page.

Here's the code: https://github.com/ml5js/ml5-library/tree/main/examples/p5js/NeuralNetwork/NeuroEvolution_FlappyBird

There is a bug in that example which we have not released the fix for yet (issue #1373) so the version on our examples site doesn't work properly just yet. https://examples.ml5js.org/p5js/neuralnetwork/neuroevolution_flappybird/