inst/test_new_dnn.R

input <- matrix(runif(6), 3, 2)
target <- rowSums(input)

darch <- new_dnn(c(2, 1))
predict(darch, newdata = input)

x <- cbind(input, 1)
weight <- getLayer(darch, 1)[[1]]

y <- x %*% weight

y
rz1988/deeplearning documentation built on May 28, 2019, 10:46 a.m.