Skip to content

Data-Science-in-Mechanical-Engineering/infoprop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

infoprop submission code

This project has the submission code for the paper "On Rollouts in Model-Based Reinforcement Learning" arxiv. This project is an adapted version of MBRL-Lib by facebook research. Only Infoprop Dyna is implemented here. To run the other algorithms used for comparison, use MACURA.

Installation Instructions

First, change directory to where the project is located:

cd <root_directory_of_the_project>

To run the code, you will need anaconda installed on your system. First, to install the conda environment run:

conda env create -f environment.yaml

This will create a conda environment named infoprop. To activate the environment run:

conda activate infoprop

Next, you will need to install the mbrl package. To do this run:

pip install -e .

To see if everything works as expected, run the following command in terminal:

python -m mbrl.examples.main

You should see that an Infoprop Dyna experiment has started with default parameters. To terminate use Ctrl+c. We use hydra for configuration management, for information visit hydra-docs. In order to run an experiment on another environment, for example hopper, use:

python -m mbrl.examples.main overrides=info_hopper

By default, the experiments are logged in csv files within the exp folder. For advanced logging and visualization we use weights and biases(W&B). For creating a weights and biases account, visit W&B account creation. For additional documentation visit wandb docs. In order to enable W&B logging, run the experiment with:

python -m mbrl.examples.main wandb_log=True wandb_project=Infoprop experiment=wandb_trial_run 

This will log the current experiment in the project "Infoprop" with the name "wandb_trial_run".

About

This is the github repository of the paper 'On Rollouts in Model-Based Reinforcement Learning'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages