mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Merge pull request #428 from c-bata/support-optuna-metric-names
Support `metric_names` introduced in Optuna
This commit is contained in:
+16
-1
@@ -7,7 +7,7 @@ Warning Messages
|
||||
----------------
|
||||
|
||||
Human-in-the-loop optimization will not work with ``_CachedStorage`` in Optuna prior to v3.2.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This warning occurs when the storage object associated with the Optuna Study is of the ``_CachedStorage`` class.
|
||||
|
||||
@@ -22,3 +22,18 @@ or use a following dirty hack to unwrap ``_CachedStorage`` class.
|
||||
|
||||
if isinstance(study._storage, optuna.storages._CachedStorage):
|
||||
study._storage = study._storage._backend
|
||||
|
||||
|
||||
``set_objective_names()`` function is deprecated. Please use ``study.set_metric_names()`` instead.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
:func:`~optuna_dashboard.set_objective_names` function has been ported to Optuna.
|
||||
Please use `study.set_metric_names() <https://optuna.readthedocs.io/en/latest/reference/generated/optuna.study.Study.html#optuna.study.Study>`_ function instead.
|
||||
|
||||
.. list-table::
|
||||
|
||||
* - Deprecated APIs
|
||||
- Corresponding Active APIs
|
||||
* - ``optuna_dashboard.set_objective_names(study, ["objective 1", "objective 2"])``
|
||||
- ``study.set_metric_names(["objective 1", "objective 2"])``
|
||||
|
||||
|
||||
Reference in New Issue
Block a user