Enhance plot_parallel_coordinate()
by eliminating redundant for-loops
#5409
Labels
code-fix
Change that does not change the behavior, such as code refactoring.
contribution-welcome
Issue that welcomes contribution.
Motivation
In parallel coordinate plot,
_is_log_scale()
,_is_categorical()
, and_is_numerical()
functions are invoked.optuna/optuna/visualization/_parallel_coordinate.py
Lines 213 to 237 in fcffbea
Each one of these functions iterates over the trials, which is clearly redundant.
optuna/optuna/visualization/_utils.py
Lines 72 to 98 in fcffbea
Suggestion
Making
plot_parallel_coorinate()
faster by removing wasted for-loop.Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: