Tweaked the cost function

pull/1/head
E. Almqvist 4 years ago
parent 6d5fc63e05
commit 2f1d7d458d
  1. 2
      rgbAI/lib/func.py

@ -13,7 +13,7 @@ class AIlib:
maxLen = len(correct) maxLen = len(correct)
for i in range(maxLen): for i in range(maxLen):
costSum += (predicted[i] - correct[i])**2 costSum += abs((predicted[i] - correct[i]))
return costSum / maxLen return costSum / maxLen

Loading…
Cancel
Save