From 354d73d1e868d1e47b4bece46ea5213e628d2195 Mon Sep 17 00:00:00 2001 From: Maximilian Ernestus Date: Tue, 4 Jul 2023 14:25:07 +0200 Subject: [PATCH 1/9] First draft of CLI documentation (WIP) --- docs/getting-started/cli.rst | 130 +++++++++++++++++++++++++++++++++++ docs/index.rst | 1 + 2 files changed, 131 insertions(+) create mode 100644 docs/getting-started/cli.rst diff --git a/docs/getting-started/cli.rst b/docs/getting-started/cli.rst new file mode 100644 index 000000000..b5e4a5696 --- /dev/null +++ b/docs/getting-started/cli.rst @@ -0,0 +1,130 @@ +====================== +Command Line Interface +====================== + +Many features of the core library are accessible via the command line interface built +using the `Sacred `_ package. + +Sacred is used to configure and run the algorithms of the core library. +It is centered around the concept of `experiments `_ +which are composed of reusable `ingredients `_. +Each experiment and each ingredient has its own configuration namespace. +Named configurations are used to specify a coherent set of configuration values. +It is recommended to at least read the +`Sacred documentation about the command line interface `_. + +The :py:mod:`scripts ` package contains a number of sacred experiments to either execute algorithms or perform utility tasks. +The most important :py:mod:`ingredients ` for imitation learning are: + +- :py:mod:`Environments ` +- :py:mod:`Expert Policies ` +- :py:mod:`Expert Demonstrations ` +- :py:mod:`Reward Functions ` + + +Usage Examples +============== + +Here we demonstrate some usage examples for the command line interface. +You can always find out all the configurable values by running: + +.. code-block:: bash + + python -m imitation.scripts.