docs: public void setRegularization(double reg)
      {
          if(Double.isInfinite(reg) || Double.isNaN(reg) || reg <= 0.0)
              throw new ArithmeticException("Pegasos requires a positive regularization cosntant");
          this.reg = reg;
      }