diff --git a/docs/cli/basic-usage/README.md b/docs/cli/basic-usage/README.md index 850ebdd8..812bc651 100644 --- a/docs/cli/basic-usage/README.md +++ b/docs/cli/basic-usage/README.md @@ -45,7 +45,6 @@ python -m autora.workflow example.lib.theorist --in-path experiment_data.pkl --o We can interrogate the results by loading them into the current session. - ```python #!/usr/bin/env python from autora.workflow.__main__ import load_state @@ -110,18 +109,18 @@ print(state) # ) ``` -`state` is the following object which, once loaded, can be treated like any other `State` object. -For instance, we can plot the results: +For instance, we can plot the results. We define another script in the `example` package: ```python title="example/plot.py" --8<-- "https://raw.githubusercontent.com/AutoResearch/autora-core/main/docs/cli/basic-usage/example/plot.py" ``` +... and invoke it on the command line: + ```shell python -m example.plot model.pkl ``` - ![png](img/after-one-cycle.png) If we instead run the experiment for 4 cycles, we can get results closer to the ground truth.