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
Copy file name to clipboardExpand all lines: benchmarking/README.md
+79-2Lines changed: 79 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,93 @@ This directory contains sacred configuration files for benchmarking imitation's
4
4
5
5
Configuration files can be loaded either from the CLI or from the Python API. The examples below assume that your current working directory is the root of the `imitation` repository. This is not necessarily the case and you should adjust your paths accordingly.
6
6
7
-
## CLI
7
+
To run a single benchmark from the command line:
8
8
9
9
```bash
10
10
python -m imitation.scripts.<train_script><algo> with benchmarking/<config_name>.json
11
11
```
12
+
12
13
`train_script` can be either 1) `train_imitation` with `algo` as `bc` or `dagger` or 2) `train_adversarial` with `algo` as `gail` or `airl`.
13
14
14
-
## Python
15
+
To run a single benchmark from Python add the config to your experiment:
15
16
16
17
```python
17
18
...
18
19
ex.add_config('benchmarking/<config_name>.json')
19
20
```
21
+
22
+
To generate the commands to run the entire benchmarking suite with multiple random seeds:
0 commit comments