Giter VIP home page Giter VIP logo

Comments (3)

krumiaa avatar krumiaa commented on June 6, 2024 2

Thanks for making this available, looks excellent. Is there any simple examples available online where you have implemented this? This concept of an academy and teachers etc. is intriguing, but the formulation is unique so it would help to have a concrete example where all the elements are interacting.

from reimprovejs.

Pravez avatar Pravez commented on June 6, 2024

Hello and thank you.

The idea of the lesson is that your agent is like a student in an academy. It has a teacher which regulates its learning. When your game is updating itself, the teacher is managing the agent so that he can learn properly at a certain "rate". Each lesson is finally hours of teaching (lessonsLength) where at the end the agent has "homework" (model training).

For instance with (lessonsQuantity = 50, lessonsLength = 1000 and lessonsWithRandom = 10), the teacher will regulate the agent so that it will "learn" during 50 lessons (meaning, will do 50x backpropagation to update model's weights), each lesson will be 1000 frames length (so after your world updated 1000 times, the current lesson ends, then the agent does some learning, then a new lesson starts), and during the 10 first lessons the agent will take completely random decisions (exploration/exploitation problem, with random you ensure you explored approximately every possible state of your world).

Your computer will have a hard time if you are trying to train 50 different agents at the same time, do not forget that this library is at its beginnings, without the optimal algorithms and running in Javascript, in your browser. It would be a good idea to prefer genetic algorithms (which I hope will be implemented later in this library).

Let me know if this helped

from reimprovejs.

clementpl avatar clementpl commented on June 6, 2024

Hello,

First, Thanks for your work !

I'm not an expert in reinforcement learning.
I'm actually trying to use your library correctly.

I'm wondering how do you handle simulation ending when you don't have fixed "update/step".
For example (Flappy bird);
config => lessonLength: 1000
Your bird make a bad action after 10 update and the game end.
How do you tell the teacher that the lesson is finish, and force him to train the agent ?
Should I continue replaying several games until the number of step reach the lessonLength ?

Thank you
Clement

from reimprovejs.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.