https://github.com/sukiboo/policy_entropy
Analyzing policy entropy of reinforcement learning agents
https://github.com/sukiboo/policy_entropy
mathematics policy-gradient q-learning reinforcement-learning stable-baselines3
Last synced: 2 months ago
JSON representation
Analyzing policy entropy of reinforcement learning agents
- Host: GitHub
- URL: https://github.com/sukiboo/policy_entropy
- Owner: sukiboo
- License: mit
- Created: 2022-08-10T15:32:16.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T12:19:37.000Z (almost 3 years ago)
- Last Synced: 2025-08-20T07:28:49.378Z (11 months ago)
- Topics: mathematics, policy-gradient, q-learning, reinforcement-learning, stable-baselines3
- Language: Python
- Homepage:
- Size: 21.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Policy Entropy of RL Agents
This repository contains the source code for the numerical experiments presented in the paper "[Analyzing Policy Entropy of Reinforcement Learning Agents for Personalization Tasks](https://arxiv.org/abs/2211.11869)".
## How to Use
### Installation
Install the requirements via `pip install -r requirements.txt`.
### Run Experiments
Run the experiments via `python -m run_experiment -c config`, where `config` is a configuration file in `./configs/` directory.
The available values are `{config_mnist, config_cifar10, config_spotify, config_recogym, config_personalization}`, which could be specified to recreate each of the presented numerical experiments.
Optionally, a custom experiment can be set up by changing or adding new configuration file.
### Load Experiments
All previously performed experiments are stored in `./data/` directory and can be recreated by loading via `python -m run_experiment -l exp_name`, where `exp_name` is the name of the experiment as it is saved in `./data/`.
### Results


## File Structure
* `run_experiment.py` --- set up and run the experiment
* `agent.py` --- set up selected RL agents
* `environment.py` --- create the specified environment
* `environments/` --- data required to set up various environments
* `configs/` --- configuration files for the experiments
* `data/` --- store data from previously run experiments
* `images/` --- plots of various results from experiments
* `visualization.py` --- save/load the experiment data, plot the results
## License
This project is licensed under the MIT License.