Description Usage Arguments Functions Squashing functions See Also Examples
Squash functions, more commonly known as activation functions.
Set activation functions for your layers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | squash_function(func)
squash_sigmoid()
squash_logistic()
squash_tanh()
squash_identity()
squash_relu()
squash_step()
squash_hlim()
squash_softsign()
squash_sinusoid()
squash_gaussian()
squash_bent_identity()
squash_bipolar()
squash_bipolar_sigmoid()
squash_hard_tanh()
squash_aboslute()
squash_inverse()
run_squash(func, x = seq(-1, 1, by = 0.1), print = TRUE, plot = TRUE)
squash_input(brain, squash, bias = NULL)
squash_output(brain, squash, bias = NULL)
(brain, squash, bias = NULL)
|
func |
A squashing functions name. |
x |
A vector of integer. |
print |
If |
plot |
if |
brain |
An object of class |
squash |
A object of class |
bias |
A bias, numerical. |
squash_function
: A squash function to use in your brain
.
run_squash
: Test and expore the squash_function
.
squash_*
: Convenient wrappers around squash_function
.
logistic
also known as sigmoid
tanh
identity
relu
step
or hlim
(hard limit function)
softsign
sinusoid
gaussian
bent_identity
bipolar
bipolar_sigmoid
hard_tanh
absolute
inverse
squash_function
for valid activation functions.
1 2 3 4 5 6 7 8 9 10 | run_squash("tanh")
(x <- seq(-10, 10, by = .2))
run_squash("sigmoid", x)
brain() %>%
perceptron(c(2,3,1)) %>%
squash_input(
squash_function("tanh")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.