Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix metrics testing failure due to optimizer change #2784

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

chenmoneygithub
Copy link
Contributor

Fix the metrics testing.

@bot-of-gabrieldemarmiesse

@sorensenjs @nicolaspi

You are owners of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.

@@ -128,7 +132,7 @@ def test_keras_binary_classification_model(self, correlation_type):
tf.function(metric.update_state)(y, preds)
metric_value = tf.function(metric.result)()
scipy_value = self.scipy_corr[correlation_type](preds[:, 0], y[:, 0])[0]
np.testing.assert_almost_equal(metric_value, metric_history[-1])
np.testing.assert_almost_equal(metric_value, metric_history[-1], decimal=5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had already this 49a56e5

@bhack bhack merged commit 1e35db9 into tensorflow:master Nov 23, 2022
@sorensenjs
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants