Visualization

optuna.visualization.plot_intermediate_values(study)[source]

Inside Jupyter notebook, plot intermediate values of all trials in a study.

Example

The following code snippet shows how to plot intermediate values inside Jupyter Notebook.

import optuna

def objective(trial):
    # Intermediate values are supposed to be reported inside the objective function.
    ...

study = optuna.create_study()
study.optimize(n_trials=100)

optuna.visualization.plot_intermediate_values(study)
Parameters:study – A Study object whose trials are plotted for their intermediate values.