Description Usage Arguments Note Examples
Activate the brain.
1 2 3 4 5 6 |
brain |
An object of class |
... |
Bare column name of input. |
scale |
Set to |
name |
Name of element to activate |
data |
A data.frame. |
rate |
Learning rate, if specified the brain propagates the error. |
print |
Whether to print the predictions. |
If rate
is specified the network propagates the error, otherwise the error is not propagated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | train <- dplyr::tibble(
x = rep(c(0, 0, 1, 1), 100),
y = rep(c(0, 1, 0, 1), 100)
)
targets <- dplyr::tibble(
z = rep(c(0, 1, 1, 0), 100)
)
brain() %>%
perceptron(c(2,3,1)) %>%
train_output(x, y, data = train) %>%
activate_data(targets) %>%
activate(z, rate = .003)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.