From 6ebaf948696d124380cdb7d4c57e15cd66aa2849 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 10 Sep 2020 10:39:35 +0200 Subject: [PATCH] Stuff --- 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 1276ce5..8e3bc90 100644 --- a/rgbAI/lib/func.py +++ b/rgbAI/lib/func.py @@ -16,7 +16,7 @@ class AIlib: for i in range(outLen): sumC += (out[i] - correctOut[i])**2 # get the difference of every value - return sumC # return the cost + return sumC / outLen # return the cost def genRandomMatrix( x:int, y:int, min: float=0.0, max: float=1.0 ): # generate a matrix with x, y dimensions with random values from min-max in it # apply ranger with * and -