You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most dependencies even for the extras can just be automatically installed. However, there's two exceptions: ray (as we install from URL which PyPI does not allow) and tensorflow (as we need two different versions).
3
+
## Developer Installation
6
4
7
-
Installation from PyPI should work like this:
5
+
For development, manual installation is the easiest way to stay up-to-date:
Copy file name to clipboardExpand all lines: README.md
+19-25Lines changed: 19 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,24 @@ There are 4 parts to the package:
32
32
4)**Analysis**: [`plot_experiments.ipynb`](plot_experiments.ipynb) contains code to plot the standard plots from the paper.
33
33
34
34
## Installation
35
-
### Manual
35
+
36
+
### Production use
37
+
We recommend using `conda` to manage environments. After setup of the environment, you can install MDP Playground in two ways:
38
+
#### Manual
39
+
To install MDP Playground manually, clone the repository and run:
40
+
```bash
41
+
pip install -e .[extras]
42
+
```
43
+
This might be the preferred way if you want easy access to the included experiments.
44
+
45
+
#### From PyPI
46
+
MDP Playground is also on PyPI. Just run:
47
+
```bash
48
+
pip install mdp_playground[extras]
49
+
```
50
+
51
+
52
+
### Reproducing results from the paper
36
53
We recommend using `conda` environments to manage virtual `Python` environments to run the experiments. Unfortunately, you will have to maintain 2 environments - 1 for the "older" **discrete toy** experiments and 1 for the "newer" **continuous and complex** experiments from the paper. As mentioned in Appendix P in the paper, this is because of issues with Ray, the library that we used for our baseline agents.
37
54
38
55
Please follow the following commands to install for the discrete toy experiments:
MDP Playground is also on PyPI. As with the manual installation, we recommend using `conda` to manage environments. After setup of the environment, you can install MDP Playground like this:
Instead of calling `$ python run_experiments.py` in the cloned repository, you can then use `$ run-mdpp-experiments` from anywhere. Note, that you still need to specify the path to to the experiment's configuration file. Thus, for reproducing the experiments from the paper, the manual installation is the easier option.
78
-
79
73
## Running experiments
80
74
For reproducing experiments from the main paper, please see [below](#running-experiments-from-the-main-paper).
81
75
82
76
For general instructions, please continue reading.
The `exp_name` is a prefix for the filenames of CSV files where stats for the experiments are recorded. The CSV stats files will be saved to the current directory.<br>
89
83
Each of the command line arguments has defaults. Please refer to the documentation inside [`run_experiments.py`](run_experiments.py) for further details on the command line arguments. (Or run it with the `-h` flag to bring up help.)
0 commit comments