Sets the learning rate used during training @param eta the learning rate to use
(double eta)
| 88 | * @param eta the learning rate to use |
| 89 | */ |
| 90 | public void setEta(double eta) |
| 91 | { |
| 92 | if(Double.isNaN(eta) || Double.isInfinite(eta) || eta <= 0) |
| 93 | throw new ArithmeticException("convergence parameter must be a positive value"); |
| 94 | this.eta = eta; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Returns the current learning rate used during training |