Commit 21706139 authored by baberabb's avatar baberabb
Browse files

increase atol

parent a093ad5f
...@@ -91,7 +91,7 @@ class Test_HFLM: ...@@ -91,7 +91,7 @@ class Test_HFLM:
res = self.LM.loglikelihood(self.MULTIPLE_CH) res = self.LM.loglikelihood(self.MULTIPLE_CH)
_RES, _res = self.MULTIPLE_CH_RES, [r[0] for r in res] _RES, _res = self.MULTIPLE_CH_RES, [r[0] for r in res]
# change atol in case of consistent failure # change atol in case of consistent failure
assert np.allclose(_res, _RES) assert np.allclose(_res, _RES, atol=1e-4)
# check indices for Multiple Choice # check indices for Multiple Choice
argmax_RES, argmax_res = np.argmax( argmax_RES, argmax_res = np.argmax(
np.array(_RES).reshape(-1, 4), axis=1 np.array(_RES).reshape(-1, 4), axis=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment