Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CDonnerer committed Apr 2, 2022
1 parent f64a43a commit afb2fb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/distributions/test_exponential.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def test_loss(exponential):
y=np.array([1, ]),
params=np.array([[np.log(1)], ]),
)
assert loss_name == "ExponentialError"
assert loss_name == "Exponential-NLL"
assert loss_value == 1.0
2 changes: 1 addition & 1 deletion tests/distributions/test_laplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ def test_loss(laplace):
y=np.array([1, ]),
params=np.array([[1, np.log(1)], ]),
)
assert loss_name == "LaplaceError"
assert loss_name == "Laplace-NLL"
np.testing.assert_approx_equal(loss_value, -np.log(0.5))
2 changes: 1 addition & 1 deletion tests/distributions/test_log_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def test_loss(lognormal):
y=np.array([0, ]),
params=np.array([[1, 0], ]),
)
assert loss_name == "LogNormalError"
assert loss_name == "LogNormal-NLL"
assert loss_value == np.inf
2 changes: 1 addition & 1 deletion tests/distributions/test_poisson.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def test_loss(poisson):
y=np.array([1, ]),
params=np.array([[np.log(1)], ]),
)
assert loss_name == "PoissonError"
assert loss_name == "Poisson-NLL"
assert loss_value == 1.0

0 comments on commit afb2fb1

Please sign in to comment.