¡@

Home 

python Programming Glossary: self.weights

Simple multi layer neural network implementation [closed]

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

self inputs # Does not include the bias return sum val self.weights i for i val in enumerate inputs def set_weights self weights.. i val in enumerate inputs def set_weights self weights self.weights weights def __str__ self return 'Weights s Bias s' str self.weights.. weights def __str__ self return 'Weights s Bias s' str self.weights 1 str self.weights 1 class NeuronLayer def __init__ self n_neurons..