optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
674 stars 176 forks source link

Fix CI due to tensorflow eagar example #247

Closed nzw0301 closed 6 months ago

nzw0301 commented 6 months ago

Motivation

Fix https://github.com/optuna/optuna-examples/actions/runs/8308596552/job/22739014766.

Description of the changes

Add .numpy() to return a float value rather than tf.tensor

Ref: https://www.tensorflow.org/api_docs/python/tf/keras/metrics/Accuracy