from collections import defaultdict from typing import Any from typing import DefaultDict from typing import Dict from typing import List from typing import Optional from optuna.logging import get_logger from optuna.structs import TrialState from optuna.study import Study from optuna.study import StudyDirection from optuna.visualization.utils import _check_plotly_availability from optuna.visualization.utils import is_available if is_available(): from optuna.visualization.plotly_imports import go logger = get_logger(__name__) def plot_parallel_coordinate(study: Study, params: Optional[List[str]] = None ) -> "go.Figure": """Plot the high-dimentional parameter relationships in a study. Note that, If a parameter contains missing values, a trial with missing values is not plotted. Example: The following code snippet shows how to plot the high-dimentional parameter relationships.
def test_visualization_is_available(): # type: () -> None assert is_available() == _is_plotly_available()