Fixing MAE error calculation per iteration

Signed-off-by: Renato Stoffalette Joao <renatosjoao@gmail.com>