Reinforcement learning library with JavaScript.
It provides some reinforcement learning algorithms and environments.
At this moment uses TensorFlow.js to implement functions and three.js for visualization.
Visual library: three.js
JavaScript is a very popular programming language but JS developers have no instruments of RL.
This library was created to correct the situation.
Web game makers can use it to train game bots in 2D and 3D environments.
Other can find it useful to make experiments.
Unity developers can use ML methods with ml-agents
Starting example:
On Windows you need preinstalled MS Visual Studio Community edition for build 'gl' library.
git clone https://github.com/polyzer/rllib.js.git
npm i
npm run ppo-hungry-js
npm run ppo-hungry-jsm
npm run ppo-hungry3d-jsm
You can start Node.js example with:
npm run ppo_node
Deep Q-learning:
- Base Deep Q-learning
- Dueling Q-learning
- Double Q-learning
Policy gradient:
- REINFORCE
- Actor-Critic
- PPO
- TRPO
Without physics:
Flat world 3D.
Discrete and continuous versions.
- Agent have 10 eye-detectors.
- Target: Agent trying to learn eating only green items if he see them.
- Actions: turns on specified angles.
- Space: Agent recieves signal from each eye that specifies type of saw item.
It could be helpful:
npm rebuild --build-from-source gl