Code Monkey home page Code Monkey logo

Comments (3)

eleurent avatar eleurent commented on September 6, 2024
  • i notice that a variable which named “SPEED_COUNT” but i don't know the meaning

It is used to discretise the space of velocities between SPEED_MIN and SPEED_MAX, so that discrete actions FASTER and SLOWER can be used.
It is used in the reward function to compute a "velocity ratio" between 0 (min speed) and 1 (max speed) and the corresponding reward.

  • how often the high velocity reward is returned when the agent is trained in the environment ?

the _reward() function is called at every step(action) in envs/abstract.py (= every action = every second)

from rl-agents.

zhangxinchen123 avatar zhangxinchen123 commented on September 6, 2024
* i notice that a variable which named “SPEED_COUNT” but i don't know the meaning

It is used to discretise the space of velocities between SPEED_MIN and SPEED_MAX, so that discrete actions FASTER and SLOWER can be used.
It is used in the reward function to compute a "velocity ratio" between 0 (min speed) and 1 (max speed) and the corresponding reward.

* how often the high velocity reward is returned when the agent is trained in the environment ?

the _reward() function is called at every step(action) in envs/abstract.py (= every action = every second)

Thanks for you help! I wish every success in your future !

from rl-agents.

eleurent avatar eleurent commented on September 6, 2024

You too!

from rl-agents.

Related Issues (20)

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.