From 86727591df6f7ac18d1660c310d3bfa9d6c4b0f4 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 5 Sep 2020 23:43:15 +0200 Subject: [PATCH] Small fix --- rgbAI/lib/func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rgbAI/lib/func.py b/rgbAI/lib/func.py index e3329be..2b1c763 100644 --- a/rgbAI/lib/func.py +++ b/rgbAI/lib/func.py @@ -54,7 +54,7 @@ class AIlib: def gradient( dCost:float, prop:list ): propLen = len(prop) gradient = [None] * propLen - for i in range( propLen, 0, -1 ): + for i in range( propLen, -1, -1 ): if( i == propLen ): gradient[i] = dCost / prop[i] else: