Skip to content

๐Ÿ„โ€‹ Reinforcement Learning agent for Super Mario Bros

License

Notifications You must be signed in to change notification settings

datennerd/super-mario-bros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Super Mario Bros

made-with-python GitHub Super-Linter Test coverage GitHub watchers GitHub forks GitHub Repo stars

This project is based on an OpenAI Gym environment for Super Mario Bros and uses the Stable-Baseline3 library to train a Reinforcement Learning Agent (PPO aka. Proximal Policy Optimization) to play the game.

Banner

How the code works

A new agent training can be initialized using a GitHub Action. Here, a parameter is used to decide whether the training should take place locally (in a GitHub Action itself) or on the Google Cloud Platform. This way, new ideas can be quickly tested locally whereas the final training then takes place in Vertex AI. A custom job pulls a current Docker Image (is also created and uploaded via a GitHub Action) with all code from the Artifact Registry and creates a new Cloud Storage bucket, where all model artifacts are then stored.