Closed nzw0301 closed 6 months ago
Fix https://github.com/optuna/optuna-examples/actions/runs/8308596552/job/22739014766.
Add .numpy() to return a float value rather than tf.tensor
.numpy()
Ref: https://www.tensorflow.org/api_docs/python/tf/keras/metrics/Accuracy
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.tensorRef: https://www.tensorflow.org/api_docs/python/tf/keras/metrics/Accuracy