Skip to content

Contains code for teaching an agent the rules of Rock Paper Scissors

Notifications You must be signed in to change notification settings

sachag678/freeCodeCamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPS RL with TFJS

Blog post

https://medium.com/@truble678/a-beginners-guide-to-reinforcement-learning-using-rock-paper-scissors-and-tensorflow-js-37d42b6197b5#2407-f3a39557268d

Project description

This code contains a very basic introduction to Reinforcement learning using TFJS. The goal is for this to be interactive:

  • where the player will choose rock, paper or scizzors.
  • then the agent will choose what it thinks is the best action
  • then the player will tell the agent if it did bady or poorly
  • the agent will then update its ideas on which actions are good and bad

The choice of actions are visualied using plotly.js and we can see them change over time.

How to run

open index.html in a browser

About

Contains code for teaching an agent the rules of Rock Paper Scissors

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published