
Initialize 3 layer fully connected neural network, also known as multilayer perceptron, setting biases to 0 and using the Xavier initialization method for weights.
init_nn(num_inputs, num_hidden_1, num_hidden_2, num_outputs)
dimension of inputs
dimension of first hidden layer
dimension of second hidden layer
dimension of output
list containing weight and bias matrices in each layer of the network
# NOT RUN {
mlp_model <- init_nn(784, 100, 50, 10)
# }
Run the code above in your browser using DataLab