You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent update where TensorFlow Addons deprecated support for F1Score and by using the F1Score function of tf.keras, problems arise. Specifically, the num_classes parameter is no longer supported in the tf.keras.metrics.F1Score.
After updating the code to import F1Score from tf.keras and removing the num_classes parameter, the following errors occur during testing on GitHub Actions with Python versions 3.9 and 3.10:
ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int64: <tf.Tensor 'IteratorGetNext:1' shape=(None, None) dtype=int64>
and/or
ValueError: Tensor conversion requested dtype float32 for Tensor with dtype uint8: <tf.Tensor 'IteratorGetNext:1' shape=(None, None) dtype=uint8>
With the recent update where TensorFlow Addons deprecated support for F1Score and by using the F1Score function of tf.keras, problems arise. Specifically, the num_classes parameter is no longer supported in the tf.keras.metrics.F1Score.
After updating the code to import F1Score from tf.keras and removing the num_classes parameter, the following errors occur during testing on GitHub Actions with Python versions 3.9 and 3.10:
ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int64: <tf.Tensor 'IteratorGetNext:1' shape=(None, None) dtype=int64>
and/or
ValueError: Tensor conversion requested dtype float32 for Tensor with dtype uint8: <tf.Tensor 'IteratorGetNext:1' shape=(None, None) dtype=uint8>
Errors occur in the following tests:
• tests/test_automl_block_train.py
• tests/test_automl_block_pred.py
Please review and address this issue to maintain compatibility with the new tf.keras metric implementations.
Thank you!
The text was updated successfully, but these errors were encountered: