Removed bloat

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

@ -165,10 +165,7 @@ def mutateProps( inpObj, curCost:float, maxLayer:int, gradient:list ):
obj.bias[layer] -= lr["bias"] * gradient[layer]["bias"] obj.bias[layer] -= lr["bias"] * gradient[layer]["bias"]
def printProgress(): def printProgress():
import os
global DEBUG_BUFFER global DEBUG_BUFFER
os.system("clear")
print(f"LR: {DEBUG_BUFFER['lr']}") print(f"LR: {DEBUG_BUFFER['lr']}")
print(f"Cost: {DEBUG_BUFFER['cost']}") print(f"Cost: {DEBUG_BUFFER['cost']}")
print(f"Gen: {DEBUG_BUFFER['gen']}") print(f"Gen: {DEBUG_BUFFER['gen']}")

Loading…
Cancel
Save