Description Usage Arguments Value References Examples
Fit a Stack of Restricted Boltzmann Machines
| 1 2 | stacked_rbm(x, layers = c(30, 100, 30), learning_rate = 0.1,
  verbose_stack = TRUE, use_gpu = FALSE, ...)
 | 
| x | a sparse matrix | 
| layers | an integer vector of the number of neurons in each RBM | 
| learning_rate | The learning rate | 
| verbose_stack | Print messages while training the stack | 
| use_gpu | use rbm_gpu instead of rbm to train the rbm on a gpu | 
| ... | passed to the rbm function | 
a stacked_rbm object
| 1 2 3 4 5 6 | #Setup a dataset
set.seed(10)
data(movie_reviews)
data(george_reviews)
Stacked_RBM <- stacked_rbm(movie_reviews, layers = c(3, 3), max_epochs=25)
predict(Stacked_RBM, movie_reviews)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.