Skip to content

Commit

Permalink
edit experiment doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhu0 committed Jul 15, 2020
1 parent 73c1093 commit b322f41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/smexperiments/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Experiment(_base_types.Record):
New experiments are created by calling :meth:`~smexperiments.experiment.Experiment.create`. Existing
experiments can be reloaded by calling :meth:`~smexperiments.experiment.Experiment.load`. You can
add a new trial to an Experiment by calling :meth:`~smexperiments.experiment.Experiment.create_trial`.
To remove a Trial from an experiment, delete the trial.
To remove an experiment and associated trials, trial components by calling :meth:`~smexperiments.experiment
.Experiment.delete_all`.
Examples:
.. code-block:: python
Expand All @@ -38,8 +39,7 @@ class Experiment(_base_types.Record):
for trial in my_experiment.list_trials():
print(trial)
my_trial.delete()
my_experiment.delete()
my_experiment.delete_all(action="--force")
Attributes:
experiment_name (str): The name of the experiment. The name must be unique within an account.
Expand Down

0 comments on commit b322f41

Please sign in to comment.