Description Usage Arguments Examples
Obtain predictions from a DeepBeliefNet
or RestrictedBolzmannMachine
object
1 2 3 4 5 6 |
object |
the model |
newdata |
a |
drop |
do not return additional dimensions |
... |
ignored |
1 2 3 4 5 6 7 8 9 10 11 | library(mnist)
data(mnist)
## Make predictions on a DBN object
data(trained.mnist)
predict(trained.mnist, mnist$test$x[1:10,])
## Make predictions on a RBM object
data(pretrained.mnist)
rbm <- pretrained.mnist[[1]]
predictions <- predict(rbm, mnist$test$x)
dim(predictions) # 1000 columns, output size of the rbm
ncol(predictions) == rbm$output$size
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.