Skip to content

ARinger22/Q-learning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Q-Learning Implementation

This repository contains a simple implementation of the Q-learning algorithm from scratch. Q-learning is a model-free reinforcement learning algorithm used to find the optimal action-selection policy for a given problem. The algorithm learns to select actions by learning the quality of actions in a given state.

Requirements

  • Python 3.x
  • NumPy

Installation

  1. Clone the repository:
git clone https://github.com/Arker123/Q-learning.git
  1. Change directory to the project folder:
cd Q-learning
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

You can use the Q-learning algorithm by running the main.py script:

python main.py

The script contains an example environment and a Q-learning agent that learns to navigate through the environment. You can modify the environment and the parameters of the Q-learning algorithm to test different scenarios.

Contributing

Contributions are always welcome! If you have any suggestions or improvements, please feel free to create an issue or a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • The implementation is inspired by the classic work of Watkins and Dayan.
  • Thanks to the open-source community for providing valuable resources and examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%