docs: public void setRegularization(double regularization)
      {
          if (Double.isInfinite(regularization) || Double.isNaN(regularization) || regularization <= 0)
              throw new IllegalArgumentException("Regularization must be a positive value");
          this.reg = regularization;
      }