Description Usage Arguments Value Author(s) Examples
Calculates the sigmoid
sigmoid = 1 / (1 + exp(-x))
1 2 3 4 5 6 7 |
x |
a 'numeric' or a reference object of class 'number' |
Returns a 'numeric' or reference object of class 'number'
Filippo Monari
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | modello.init(10, 10, 10, 10)
## For modello_numbers sclars
x1 = number(rnorm(1), scalar=TRUE)
y1 = sigmoid(x1)
print(y1)
print(y1$v)
## For modello_number arrays
x2 = number(matrix(rnorm(9), 3, 3))
y2 = sigmoid(x2)
print(y2)
print(y2$v)
modello.close()
## For numeric sclars
x1 = rnorm(1)
y1 = sigmoid(x1)
print(y1)
## For numeric arrays
x2 = matrix(rnorm(9), 3, 3)
y2 = sigmoid(x2)
print(y2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.