Return the mean absolute error between pred and target: the average of |pred_i - target_i| over all elements.
pred
target
|pred_i - target_i|
solve(...)