diff --git a/rgbAI/lib/func.py b/rgbAI/lib/func.py index 41942f4..b279cb7 100644 --- a/rgbAI/lib/func.py +++ b/rgbAI/lib/func.py @@ -13,7 +13,7 @@ class AIlib: maxLen = len(correct) for i in range(maxLen): - costSum += (predicted[i] - correct[i])**2 + costSum += abs((predicted[i] - correct[i])) return costSum / maxLen