Back to Optuna

optuna.trial

docs/source/reference/trial.rst

4.8.0716 B
Original Source

.. module:: optuna.trial

optuna.trial

The :mod:~optuna.trial module contains :class:~optuna.trial.Trial related classes and functions.

A :class:~optuna.trial.Trial instance represents a process of evaluating an objective function. This instance is passed to an objective function and provides interfaces to get parameter suggestion, manage the trial's state, and set/get user-defined attributes of the trial, so that Optuna users can define a custom objective function through the interfaces. Basically, Optuna users only use it in their custom objective functions.

.. autosummary:: :toctree: generated/ :nosignatures:

Trial FixedTrial FrozenTrial TrialState create_trial