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

Enbale passing tests in quantiles_test.py #1224

Merged
merged 2 commits into from
Mar 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tensorflow_addons/losses/quantiles_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_sample_weighted(self):
self.assertAlmostEqual(self.evaluate(loss), 40.7 / 6, 3)

def test_timestep_weighted(self):
self.skipTest("Failing. See https://github.com/tensorflow/addons/issues/1202")
pin_obj = quantiles.PinballLoss()
y_true = tf.constant([1, 9, 2, -5, -2, 6], shape=(2, 3, 1))
y_pred = tf.constant(
Expand All @@ -103,6 +104,7 @@ def test_zero_weighted(self):
self.assertAlmostEqual(self.evaluate(loss), 0.0, 3)

def test_invalid_sample_weight(self):
self.skipTest("Failing. See https://github.com/tensorflow/addons/issues/1202")
pin_obj = quantiles.PinballLoss()
y_true = tf.constant([1, 9, 2, -5, -2, 6], shape=(2, 3, 1))
y_pred = tf.constant([4, 8, 12, 8, 1, 3], shape=(2, 3, 1))
Expand All @@ -126,3 +128,7 @@ def test_sum_reduction(self):
y_pred = tf.constant([4, 8, 12, 8, 1, 3], shape=(2, 3), dtype=tf.dtypes.float32)
loss = pin_obj(y_true, y_pred, sample_weight=2.3)
self.assertAlmostEqual(self.evaluate(loss), 12.65, 3)


if __name__ == "__main__":
tf.test.main()