Removed old code

master
E. Almqvist 4 years ago
parent 2e55a8bfd8
commit 872b524bf1
  1. 3
      rgbAI/lib/ailib/ai.py

@ -160,12 +160,9 @@ def mutateProps( inpObj, curCost:float, maxLayer:int, gradient:list ):
for layer in range(maxLayer):
lr = getLearningRate( curCost, gradient[layer], maxLayer )
# print(lr)
obj.weights[layer] -= lr["weight"] * gradient[layer]["weight"] # mutate the weights
obj.bias[layer] -= lr["bias"] * gradient[layer]["bias"]
# obj.weights[layer] -= 0.0001 * gradient[layer]["weight"] # mutate the weights
# obj.bias[layer] -= 0.0001 * gradient[layer]["bias"]
def printProgress():
import os

Loading…
Cancel
Save