optuna.trial.TrialState

class optuna.trial.TrialState(value)[source]

State of a Trial.

RUNNING

The Trial is running.

WAITING

The Trial is waiting and unfinished.

COMPLETE

The Trial has been finished without any error.

PRUNED

The Trial has been pruned with TrialPruned.

FAIL

The Trial has failed due to an uncaught error.

Methods

is_finished()

Return a bool value to represent whether the trial state is unfinished or not.

Attributes

RUNNING

COMPLETE

PRUNED

FAIL

WAITING

is_finished()[source]

Return a bool value to represent whether the trial state is unfinished or not.

The unfinished state is either RUNNING or WAITING.

Return type

bool