Weights-class {TeachNet} | R Documentation |
Contains the weights for a one hidden layer neural network in TeachNet the here cold "Arguments" are the slots in the S4 class Weights
alpha |
Intercept from output layer |
alpha_h |
Intercept from hidden layer |
w_h |
Weights from hidden layer to output layer |
w_ih |
Weights from input layer to hidden layer |
Georg Steinbuss
H <- 3 # number of neurons in hidden layer
I <- 6 # number of inputs
random_weights <- new("Weights", alpha = rnorm(1), alpha_h = rnorm(H), w_h = rnorm(H),
w_ih = matrix(nrow=I,ncol=H, data=rnorm(I*H)))