Abstract
This package provides an Optuna parallel coordinate plot using Piecewise Cubic Hermite Interpolating Polynomials (Pchip) for smooth, monotonic curves. This reduces visual clutter and makes individual trial trajectories easier to track in high-dimensional spaces compared to standard straight-line plots.
APIs
plot_curved_parallel_coordinate(study: optuna.Study, params: list[str] | None = None, points_per_segment: int = 50) -> plotly.graph_objects.Figurestudy: Theoptuna.Studyobject (plots completed trials only).params: List of parameter names to plot. Defaults to all parameters.points_per_segment: Curve resolution. Defaults to50.
Installation
This package relies on standard mathematical and visualization libraries.
$ pip install scipy plotly numpy optuna
Example
import optuna
import optunahub
def objective(trial):
x = trial.suggest_float("x", -10, 10)
y = trial.suggest_float("y", -10, 10)
z = trial.suggest_float("z", -5, 5)
return x**2 + y**2 + z**2
study = optuna.create_study()
study.optimize(objective, n_trials=30)
# Load the curved parallel coordinate module from OptunaHub
module = optunahub.load_module(package="visualization/plot_curved_parallel_coordinate")
# Generate and display the plot
fig = module.plot_curved_parallel_coordinate(study)
fig.show()
- Package
- visualization/plot_curved_parallel_coordinate
- Author
- Rishabh Dewangan
- License
- MIT License
- Verified Optuna version
- 4.7.0
- Dependencies (.txt)
- optuna
- plotly
- numpy
- scipy
- Last update
- 2026-05-13
- Discussions & Issues
- Create a discussion
- Create a bug report