From 968c70dae623400220bee283d947d52398a42e5e Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 15 Nov 2020 12:15:10 +0100 Subject: [PATCH] Made carriage returns for everything --- rgbAI/lib/ailib/ai.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rgbAI/lib/ailib/ai.py b/rgbAI/lib/ailib/ai.py index 9089359..4cde5b3 100644 --- a/rgbAI/lib/ailib/ai.py +++ b/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 ):