Description Usage Arguments Value Examples
View source: R/responsefunctions.R
An implementation of the Noisy ReLu transformation function
1 | tf_relunoise(x)
|
x |
value to transform |
x transformed
1 2 3 4 5 6 7 8 9 10 11 12 | library(ggplot2)
ggplot(data.frame(x = c(0, 4)), aes(x)) +
stat_function(fun = function(x) tf_relunoise(x))
## Not run:
library(microbenchmark)
microbenchmark::microbenchmark(tf_relu(1:100), tf_softplus(1:100),
tf_dagum(1:100), tf_sigmoid(1:100),
tf_fisk(1:100), tf_relunoise(1:100),
times = 10000
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.