docs: public void setWeightDecay(double weightDecay)
      {
          if(weightDecay < 0 || weightDecay >= 1 || Double.isNaN(weightDecay))
              throw new ArithmeticException("Weight decay must be in [0,1), not " + weightDecay);
          this.weightDecay = weightDecay;
      }