Swish | R Documentation |
The switch activation function is defined as:
Swish(x)
x |
A numeric vector. All elements must be finite and non-missing. |
f(x) = x \cdot \text{sigmoid}(x)
A numeric vector where the ReLU function has been applied
to each element of x
.
Matthew Fidler
Other Activation Functions:
ELU()
,
GELU()
,
PReLU()
,
ReLU()
,
SELU()
,
dELU()
,
dGELU()
,
dPReLU()
,
dReLU()
,
dSELU()
,
dSwish()
,
dlReLU()
,
dsoftplus()
,
lReLU()
,
softplus()
Swish(c(-1, 0, 1, 2))
# Can also be used in rxode2:
x <- rxode2({
r<- Swish(time)
})
e <- et(c(-1, 0, 1, 2))
rxSolve(x, e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.