deepnet (version 0.2)

rbm.down: Generate visible vector by hidden units states

Description

Generate visible vector by hidden units states

Usage

rbm.down(rbm, h)

Arguments

rbm
an rbm object trained by function train.rbm
h
hidden units states

Value

generated visible vector

Examples

Run this code
Var1 <- c(rep(1, 50), rep(0, 50))
Var2 <- c(rep(0, 50), rep(1, 50))
x3 <- matrix(c(Var1, Var2), nrow = 100, ncol = 2)
r1 <- rbm.train(x3, 3, numepochs = 20, cd = 10)
h <- c(0.2, 0.8, 0.1)
v <- rbm.down(r1, h)

Run the code above in your browser using DataLab