From ac6cb89bfec97d4a9e8d40ab1d20083251085d0e Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 5 Sep 2020 23:24:36 +0200 Subject: [PATCH] More gradient stuff --- rgbAI/lib/func.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rgbAI/lib/func.py b/rgbAI/lib/func.py index e6fb8fe..38ee221 100644 --- a/rgbAI/lib/func.py +++ b/rgbAI/lib/func.py @@ -53,9 +53,9 @@ class AIlib: def gradient( dCost:float, prop:list ): propLen = len(prop) - print("PropLEN: ", propLen) - print(prop) - print("\n") + #print("PropLEN: ", propLen) + #print(prop) + #print("\n") gradient = [None] * propLen for i in range( propLen ): gradient[i] = dCost / prop[i] @@ -79,4 +79,4 @@ class AIlib: weightDer = AIlib.gradient( dCost, weights ) biasDer = AIlib.gradient( dCost, bias ) - print(weightDer, len(weightDer)) + print(weights, len(weights))