Skip to content

Training a Reinforcement Learning Model to play Mario Bros 2

Notifications You must be signed in to change notification settings

Abdulwadood39/SuperMarioRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Super Mario Bros. Reinforcement Learning Project

This project aims to train a machine learning model to play Super Mario Bros. using reinforcement learning techniques. The core of this project is the MarioRL.ipynb Jupyter notebook, which contains the implementation of the reinforcement learning algorithms and the environment setup for the game.

Overview

The MarioRL.ipynb notebook is designed to:

  • Set up the game environment using Gym.
  • Implement a reinforcement learning model, specifically a Proximal Policy Optimization (PPO) agent, to learn how to play the game.
  • Train the model to navigate through the game levels, collecting coins and avoiding enemies.
  • Evaluate the model's performance and visualize its learning progress.

Getting Started

To run the MarioRL.ipynb notebook, you need to have the following prerequisites installed:

  • Python 3.6 or higher
  • Jupyter Notebook
  • TensorFlow or PyTorch for the reinforcement learning model
  • Gym for the game environment

Dependencies

The project requires the following Python packages:

  • gym
  • tensorflow or torch
  • numpy
  • matplotlib (for visualization)

You can install these dependencies using pip:

pip install gym tensorflow numpy matplotlib

Running the Notebook

  1. Open the MarioRL.ipynb notebook in Jupyter Notebook.
  2. Run the notebook cells in order. The first few cells import necessary libraries and set up the environment.
  3. The notebook then defines the reinforcement learning model and the game environment.
  4. Proceed with training the model by running the training cells. This process may take some time depending on the complexity of the model and the number of training iterations.
  5. Finally, evaluate the model's performance and visualize its learning progress.

Contributing

Contributions to this project are welcome. Please feel free to submit a pull request or open an issue if you encounter any problems or have suggestions for improvement.

Contact

For any questions or inquiries, please contact the project maintainer at abdulwadoodwaseem@gmail.com.


About

Training a Reinforcement Learning Model to play Mario Bros 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published