Description Usage Arguments Examples
Sample from a DeepBeliefNet
or RestrictedBolzmannMachine
object
1 2 3 4 5 6 7 8 |
... |
ignored |
object |
the model |
newdata |
a |
drop |
do not return additional dimensions |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(mnist)
data(mnist)
## Make predictions on a DBN object
data(pretrained.mnist)
res <- resample(pretrained.mnist, mnist$test$x)
dim(res)
head(res)
# Contrast with predict
pred <- predict(pretrained.mnist, mnist$test$x)
dim(pred)
head(pred)
## Sample an RBM object
rbm <- pretrained.mnist[[1]]
res <- resample(rbm, mnist$test$x)
dim(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.