Skip to content

Commit

Permalink
fix with tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
bquast committed Jan 5, 2020
1 parent b955df1 commit f48fe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_sigmoid.R
Expand Up @@ -5,4 +5,4 @@ expect_equal(x, sigmoid(sigmoid(x, method='Gompertz'), method='Gompertz', invers
expect_equal(c(0,0,0,0,0,0,1,2,3,4,5), sigmoid(x, method='ReLU') )
expect_equal(c(-0.05,-0.04,-0.03,-0.02,-0.01,0,1,2,3,4,5), sigmoid(x, method='leakyReLU') )
expect_equal(0.4054651, logit(0.6) )
expect_equal(c(0.5016788, 0.5045374, 0.5121444, 0.5316895, 0.5776812, 0.6666667, 0.7880584, 0.8934930, 0.9547215, 0.9823316, 0.9933516), softplus_output_to_derivative(softplus(x)))
expect_equal(c(0.5016788, 0.5045374, 0.5121444, 0.5316895, 0.5776812, 0.6666667, 0.7880584, 0.8934930, 0.9547215, 0.9823316, 0.9933516), softplus_output_to_derivative(softplus(x)), tolerance=0.000001)

0 comments on commit f48fe6f

Please sign in to comment.