matlab - How to train a neural network for the logical OR? -
so understand architecture of network. 2 input neuron, x1 , bias. give bias weight of 10 , x1 weight of -20. if x1 0 sigmoid(10) = 1. if x1 1 sigmoid(-10) = 0.
i tried implement in matlab/octave not figure out how.
first of keep in mind need 2 inputs , bias, can have possible options (0,0), (0,1), (1,0) , (1,1). 1 input neuron , bias can't create possible inputs.
then randomly set weights , start training forwarding inputs , correcting weights using algorithm backpropagation. started recommend follow tutorial http://iamtrask.github.io/2015/07/12/basic-python-network/, you'll learn how train simple neural nets , how work.
the tutorial in python, it's simple , useful idea.
Comments
Post a Comment