From d436f2b1ecd79204a87f0e3d444f0fed1961c8fa Mon Sep 17 00:00:00 2001 From: GeorgOstrovski Date: Wed, 18 Jun 2014 17:11:41 +0100 Subject: changed precison threshold for LogSoftmax test The previous threshold was insufficient and the test occasionally failed. I ran it a large number of times (~1e5) and the actual error reached ~ 2x1e-4, so I propose 3*1e-10 as the new safer threshold. --- test/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index 9b2a2c9..f939ed1 100644 --- a/test/test.lua +++ b/test/test.lua @@ -472,7 +472,7 @@ function nntest.LogSoftmax() local module = nn.LogSoftMax() local err = jac.testJacobian(module,input) - mytester:assertlt(err,expprecision, 'error on state ') + mytester:assertlt(err,3*expprecision, 'error on state ') local ferr,berr = jac.testIO(module,input) mytester:asserteq(ferr, 0, torch.typename(module) .. ' - i/o forward err ') -- cgit v1.2.3