Skip to content

Commit

Permalink
test ReLU
Browse files Browse the repository at this point in the history
  • Loading branch information
bquast committed Jan 5, 2020
1 parent 062f487 commit 8e43a8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test_sigmoid.R
Expand Up @@ -2,3 +2,4 @@ library(sigmoid)
x = -5:5
expect_equal(x, sigmoid(sigmoid(x), inverse=TRUE) )
expect_equal(x, sigmoid(sigmoid(x, method='Gompertz'), method='Gompertz', inverse=TRUE) )
expect_equal(c(0,0,0,0,0,0,1,2,3,4,5), sigmoid(x, method='ReLU') )

0 comments on commit 8e43a8b

Please sign in to comment.