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