tf_relunoise: The Noise ReLu transformation function

Description Usage Arguments Value Examples

View source: R/responsefunctions.R

Description

An implementation of the Noisy ReLu transformation function

Usage

1

Arguments

x

value to transform

Value

x transformed

Examples

 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)

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.