Add weights to the combine mask to weigh the absolute error part and the spillage loss part separately.