mlos_bench.environments.status
Enum for the status of the benchmark/environment Trial or Experiment.
Attributes
The set of completed statuses. |
Classes
Enum for the status of the benchmark/environment Trial or Experiment. |
Module Contents
- class mlos_bench.environments.status.Status(*args, **kwds)[source]
Bases:
enum.Enum
Enum for the status of the benchmark/environment Trial or Experiment.
- static completed_statuses() frozenset[Status] [source]
Get the set of
COMPLETED_STATUSES
.
- is_canceled() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is CANCELED.
- Return type:
- is_completed() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is one of
COMPLETED_STATUSES
.- Return type:
- is_failed() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is FAILED.
- Return type:
- is_pending() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is PENDING.
- Return type:
- is_ready() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is READY.
- Return type:
- is_running() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is RUNNING.
- Return type:
- is_succeeded() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is SUCCEEDED.
- Return type:
- is_timed_out() bool [source]
Check if the status of the benchmark/environment Trial or Experiment is TIMED_OUT.
- Return type:
- mlos_bench.environments.status.COMPLETED_STATUSES[source]
The set of completed statuses.
Includes all statuses that indicate the trial or experiment has finished, either successfully or not. This set is used to determine if a trial or experiment has reached a final state. This includes: -
Status.SUCCEEDED
: The trial or experiment completed successfully. -Status.CANCELED
: The trial or experiment was canceled. -Status.FAILED
: The trial or experiment failed. -Status.TIMED_OUT
: The trial or experiment timed out.