optuna.structs¶
-
class
optuna.structs.TrialState[source]¶ State of a
Trial.-
PRUNED¶ The
Trialhas been pruned withTrialPruned.
Deprecated since version 1.4.0: This class is deprecated. Please use
TrialStateinstead.-
-
class
optuna.structs.StudyDirection[source]¶ Direction of a
Study.-
NOT_SET¶ Direction has not been set.
Deprecated since version 1.4.0: This class is deprecated. Please use
StudyDirectioninstead.-
-
class
optuna.structs.FrozenTrial(number: int, state: TrialState, value: Optional[float], datetime_start: Optional[datetime], datetime_complete: Optional[datetime], params: Dict[str, Any], distributions: Dict[str, BaseDistribution], user_attrs: Dict[str, Any], system_attrs: Dict[str, Any], intermediate_values: Dict[int, float], trial_id: int)[source]¶ Status and results of a
Trial.-
number¶ Unique and consecutive number of
Trialfor eachStudy. Note that this field uses zero-based numbering.
-
state¶ TrialStateof theTrial.
-
params¶ Dictionary that contains suggested parameters.
-
user_attrs¶ Dictionary that contains the attributes of the
Trialset withoptuna.trial.Trial.set_user_attr().
-
intermediate_values¶ Intermediate objective values set with
optuna.trial.Trial.report().
Warning
Deprecated in v1.4.0. This feature will be removed in the future. The removal of this feature is currently scheduled for v3.0.0, but this schedule is subject to change. See https://github.com/optuna/optuna/releases/tag/v1.4.0.
This class was moved to
trial. Please useFrozenTrialinstead.-
property
duration¶ Return the elapsed time taken to complete the trial.
- Returns
The duration.
-
-
class
optuna.structs.StudySummary(study_name: str, direction: _study_direction.StudyDirection, best_trial: Optional[FrozenTrial], user_attrs: Dict[str, Any], system_attrs: Dict[str, Any], n_trials: int, datetime_start: Optional[datetime], study_id: int)[source]¶ Basic attributes and aggregated results of a
Study.See also
optuna.study.get_all_study_summaries().-
direction¶ StudyDirectionof theStudy.
-
best_trial¶ FrozenTrialwith best objective value in theStudy.
-
user_attrs¶ Dictionary that contains the attributes of the
Studyset withoptuna.study.Study.set_user_attr().
Warning
Deprecated in v1.4.0. This feature will be removed in the future. The removal of this feature is currently scheduled for v3.0.0, but this schedule is subject to change. See https://github.com/optuna/optuna/releases/tag/v1.4.0.
This class was moved to
study. Please useStudySummaryinstead.-