Derivative of the Scaled Exponential Linear Unit (SELU) Activation Function
Source:R/selu.R
dSELU.Rd
Derivative of the Scaled Exponential Linear Unit (SELU) Activation Function
Value
A numeric vector where the derivative of the SELU function
has been applied to each element of x
.
Examples
dSELU(c(-1, 0, 1, 2))
#> [1] 0.6467686 1.7580993 1.0507010 1.0507010
# Can also be used in rxode2:
x <- rxode2({
r=dSELU(time)
})
#>
#>
#> using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
e <- et(c(-1, 0, 1, 2))
rxSolve(x, e)
#> ── Solved rxode2 object ──
#> ── Parameters (value$params): ──
#> # A tibble: 1 × 0
#> ── Initial Conditions (value$inits): ──
#> named numeric(0)
#> ── First part of data (object): ──
#> # A tibble: 4 × 2
#> time r
#> <dbl> <dbl>
#> 1 -1 0.647
#> 2 0 1.76
#> 3 1 1.05
#> 4 2 1.05