Made carriage returns for everything

master
E. Almqvist 4 years ago
parent 99a264be47
commit 968c70dae6
  1. 6
      rgbAI/lib/ailib/ai.py

@ -166,9 +166,9 @@ def mutateProps( inpObj, curCost:float, maxLayer:int, gradient:list ):
def printProgress():
global DEBUG_BUFFER
print(f"LR: {DEBUG_BUFFER['lr']}")
print(f"Cost: {DEBUG_BUFFER['cost']}")
print(f"Gen: {DEBUG_BUFFER['gen']}")
print(f"LR: {DEBUG_BUFFER['lr']}", end="\r")
print(f"Cost: {DEBUG_BUFFER['cost']}", end="\r")
print(f"Gen: {DEBUG_BUFFER['gen']}", end="\r")
print(f"inp: {DEBUG_BUFFER['inp']} | pre: {DEBUG_BUFFER['predicted']} cor: {DEBUG_BUFFER['correct']}", end="\r")
def learn( inputNum:int, obj, theta:float, traintimes:int ):

Loading…
Cancel
Save