Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy, random, os
- lr = 1 #learning rate
- bias = 1 #value of bias
- weights = [random.random(),random.random(),random.random()] #weights generated in a list (3 weights in total for 2 neurons and the bias)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement