### define a dnn model, calculate the feed forward network
model = dNNmodel(units = c(8, 6, 1), activation = c("elu", "sigmoid", "sigmoid"),
input_shape = 3)
### feed forward with a dummy x matrix
x = matrix(runif(15), nrow = 5, ncol = 3)
cache = fwdNN(x, model)
Run the code above in your browser using DataLab