pull/1/head
E. Almqvist 4 years ago
parent 52054ad667
commit 012b3a12a1
  1. 2
      rgbAI/lib/func.py

@ -43,7 +43,7 @@ class AIlib:
gradient = np.transpose( np.asmatrix(derv1 * derv2 * inp) ) gradient = np.transpose( np.asmatrix(derv1 * derv2 * inp) )
print("Inp:", inp) print("Inp:", inp)
print("Grad:", gradient) print("Grad:", gradient)
return gradient / prop return gradient
def mutateProp( prop:list, lr, gradient ): def mutateProp( prop:list, lr, gradient ):

Loading…
Cancel
Save