Closed cdiekman closed 4 years ago
The following example shows how to access the parameters:
library('ANN2')
X <- iris[,1:4]
y <- iris$Species
nn <- neuralnetwork(X, y, hidden.layers = c(10, 10), val.prop = 0)
params <- nn$Rcpp_ANN$getParams()
weights <- params$weights
biases <- params$biases
After training a network using the 'neuralnetwork' function, how can I obtain the weights in the resulting 'ann' object?