This is a simple integration of a reinforcement leanrning library rllib with Park.
-
Download source code from GitHub
git clone https://github.com/saeid93/park-rllib
-
Download and install miniconda
-
Create conda virtual-environment
conda create --name parkrllib python=3
-
Activate conda environment
conda activate parkrllib
-
if you want to use GPUs make sure that you have the correct version of CUDA and cuDNN installed from here
-
Use PyTorch or Tensorflow isntallation manual to install one of them based-on your preference
-
Install the followings
sudo apt install cmake libz-dev
-
Install requirements
pip install -r requirements.txt
The code is separated into three module:
- data/: This is the folder containing all the configs and results of the project. Could be anywhere in the project.
- /experiments: The scripts used for using rllib.
- park/: The park library copied from the park repository.
1. data/
Link the data folder (could be placed anywhere in your harddisk) to the project. A sample of the data folder is available at data/.
Go to /experiments/utils/constants.py and set the path to your data and project folders in the file. For example:
DATA_PATH = "/Users/saeid/Codes/park-rllib/data"