Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
fsx950223 committed Oct 13, 2023
1 parent 60dffdf commit fd0ae4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_keras_binary_classification_model(self, correlation_type):
metric.reset_state()
# we decorate with tf.function to ensure the metric is also checked against graph mode.
# keras automatically decorates the metrics compiled within keras.Model.
tf.function(metric.update_state)(y, preds)
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], decimal=6)
Expand Down

0 comments on commit fd0ae4d

Please sign in to comment.