docs: public static double deriv2(double pred, double y)
      {
          final double x = y * pred;
          if (x >= 30)
              return 0;
          else if (x <= -30)
              return 0;
  
          final double p = 1 / (1 + exp(y * pred));
  
          return p * (1 - p);
      }