📈 Results
Experiments consist of one or many RLlib YAML config files alongside a MARKDOWN file containing results, plots and a detailed description of the methodology.
All files are stored in a experiment folder under experiments/<env-name>/<experiment-name>
.
Using conda (recommended):
# with GPU support:
conda env create -f environment-gpu.yml
# or, without GPU support:
#conda env create -f environment-cpu.yml
conda activate flatland-env
pip install -r requirements.txt
Using pip:
# no GPU support:
pip install -r requirements.txt
You may need to install/update bazel: Ubuntu guide
Training example:
python ./train.py -f experiments/flatland_random_sparse_small/global_obs_conv_net/ppo.yaml
Evaluation example:
python ./rollout.py /tmp/ray/checkpoint_dir/checkpoint-0 --run PPO --no-render --config '{"env_config": {"test": true}}' --episodes 1000 --out rollouts.pkl
Note that -f overrides all other trial-specific command-line options.
- The basic structure of this repository is adopted from https://github.com/spMohanty/rl-experiments/