https://github.com/eczy/relational-rl
https://github.com/eczy/relational-rl
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eczy/relational-rl
- Owner: eczy
- Created: 2020-04-18T00:25:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T18:49:12.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T23:43:50.950Z (over 1 year ago)
- Language: Python
- Size: 512 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# relational-rl
This repo contains 4 models:
* Q-learning
* SARSA
* Deep Q-learning
* Relational Q-learning
Below are the instructions:
1. Open the "relational-rl" directory from terminal
1. Install dependencies:
```
pip install -r requirements.txt
```
2. Run the following commands to run each of the models:
* Q-learning
```python
python main_TabularQLearning.py
```
* SARSA
```python
python main_TabularSarsa.py
```
* Deep Q-learning
```python
python main.py baseline
```
* Relational Q-learning
```python
python main.py relational
```
# Acknowledgement:
`box_world_env.py` and `boxworld_gen.py` are from Nathan Grinsztajn's BoxWorld implementation found at `https://github.com/nathangrinsztajn/Box-World`.