optuna.trial.FrozenTrial¶
-
class
optuna.trial.FrozenTrial(number: int, state: TrialState, value: Optional[float], datetime_start: Optional[datetime.datetime], datetime_complete: Optional[datetime.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().
-
__init__(number: int, state: TrialState, value: Optional[float], datetime_start: Optional[datetime.datetime], datetime_complete: Optional[datetime.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) → None[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(number, state, value, …)Initialize self.
Attributes
Dictionary that contains the distributions of
params.Return the elapsed time taken to complete the trial.
last_step-
property
duration¶ Return the elapsed time taken to complete the trial.
- Returns
The duration.
-