implemented additional loss functions: sum of absolute errors, sum of relative errors, and Poisson-loss