Installation

APReL runs on Python 3.

Install from Source

  1. APReL uses ffmpeg for trajectory visualizations. Install it with the following command on Linux:

apt install ffmpeg

If you are using a Mac, you can use Homebrew to install it:

brew install ffmpeg
  1. Clone the aprel repository

git clone https://github.com/Stanford-ILIAD/APReL.git
cd APReL
  1. Install the base requirements with

pip3 install -r requirements.txt
  1. (Optional) If you want to build the docs locally, you will also need some additional packages, which can be installed with:

pip3 install -r docs/requirements.txt
  1. Install APReL from the source by running:

pip3 install -e .
  1. Test APReL’s runner file by running

python examples/python simple.py

You should be able to see the MountainCarContinuous-v0 environment rendering multiple times. After it renders (and saves) 10 trajectories, it is going to query you for your preferences. See the next section for more information about this runner file.