Skip to content

Commit

Permalink
Update test_loss.py to remove fixed seed (apache#11995)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-haibin-lin authored Aug 4, 2018
1 parent 48f8d03 commit 9d57660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/unittest/test_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_kl_loss():
assert mod.score(data_iter, eval_metric=mx.metric.Loss())[0][1] < 0.05


@with_seed(1234)
@with_seed()
def test_l2_loss():
N = 20
data = mx.random.uniform(-1, 1, shape=(N, 10))
Expand All @@ -164,7 +164,7 @@ def test_l2_loss():
assert mod.score(data_iter, eval_metric=mx.metric.Loss())[0][1] < 0.05


@with_seed(1234)
@with_seed()
def test_l1_loss():
N = 20
data = mx.random.uniform(-1, 1, shape=(N, 10))
Expand Down

0 comments on commit 9d57660

Please sign in to comment.