¡@

Home 

python Programming Glossary: self.n_inputs

Simple multi layer neural network implementation [closed]

http://stackoverflow.com/questions/15395835/simple-multi-layer-neural-network-implementation

network_name class Neuron def __init__ self n_inputs self.n_inputs n_inputs self.set_weights random.uniform 0 1 for x in range.. self n_inputs n_outputs n_neurons_to_hl n_hidden_layers self.n_inputs n_inputs self.n_outputs n_outputs self.n_hidden_layers n_hidden_layers.. first layer self.layers NeuronLayer self.n_neurons_to_hl self.n_inputs # create hidden layers self.layers NeuronLayer self.n_neurons_to_hl..