optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
534 stars 90 forks source link

Fix plot visualization issues with categorical parameters #993

Closed porink0424 closed 1 week ago

porink0424 commented 1 week ago

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code. This pull request may therefore be ported to Goptuna. Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

Reference Issues/PRs

Fixes #977 Follow-up of PR #988

What does this implement/fix? Explain your changes.

toString() was directly applied to CategoricalChoiceType object, causing the plot to display [object Object] unexpectedly. This PR fixes the issue by modifying it to extract the value instead.