Description Usage Arguments See Also Examples
Learn and feed a hopfield
brain.
1 2 3 4 5 6 7 8 9 |
brain |
An object of class |
data |
A data.frame of training or test data. |
... |
Bare column names. |
scale |
Set to |
print |
Whether to print results in the console. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | train_data <- dplyr::tibble(
a = c(0, 1),
b = c(1, 1),
c = c(0, 1),
d = c(1, 1)
)
test_data <- dplyr::tibble(
a = c(0, 0),
b = c(1, 1),
c = c(0, 1),
d = c(1, 1)
)
brain() %>%
hopfield(10) %>%
learn_data(train_data) %>%
learn_pattern(a, b, c, d) %>%
learn() %>%
feed_data(test_data) %>%
feed(a, b, c, d)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.