Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import numpy, random, os
  2. lr = 1 #learning rate
  3. bias = 1 #value of bias
  4. 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