public static double deriv(double pred,double y){
  return Math.signum(pred - y);
}

public static double deriv ( double pred , double y ) { return Math . signum ( pred - y ) ; }
returns the derivative of the absolute loss
