Function neural_network::construct()

← Back to Class neural_network



Module neuralClass neural_network → construct()

Description

The constructor. Create an instance of class neural_network

neural_network::construct(layers = [], learning_rate = 0.01)


Parameters


Return Value


Usage Example

import neural
 
model = neural_network([784, 20, 10, 10], 0.01)   ' Construct the model with 784 inputs, 2 hidden layers, 10 outputs,
                                                  ' and learning rate: 0.01