python Programming Glossary: self.layers
Simple multi layer neural network implementation [closed] http://stackoverflow.com/questions/15395835/simple-multi-layer-neural-network-implementation self if self.n_hidden_layers 0 # create the first layer self.layers NeuronLayer self.n_neurons_to_hl self.n_inputs # create hidden.. self.n_inputs # create hidden layers self.layers NeuronLayer self.n_neurons_to_hl self.n_neurons_to_hl for _.. in range 0 self.n_hidden_layers # hidden to output layer self.layers NeuronLayer self.n_outputs self.n_neurons_to_hl else # If..
|