optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
692 stars 178 forks source link

Extract score value from dask array #249

Closed nzw0301 closed 8 months ago

nzw0301 commented 8 months ago

Motivation

FIx dask ml's ci error, https://github.com/optuna/optuna-examples/actions/runs/8308615555/job/22739051207.

Description of the changes

Extract the internal value by calling .compute method.

nzw0301 commented 8 months ago

I think this is quite similar to #247 and #250. All objectives return a float-castable value but not numerical value. So I suspect that optuna/optuna might introduce some change to break backward compatibility for this hebaviour.