Sets the number of folds to use for cross validation when estimating the error rate @param folds the number of folds to use for cross validation when estimating the error rate
(int folds)
| 398 | * @param folds the number of folds to use for cross validation when estimating the error rate |
| 399 | */ |
| 400 | public void setFolds(int folds) |
| 401 | { |
| 402 | if(folds <= 0 ) |
| 403 | throw new IllegalArgumentException("Number of CV folds must be positive, not " + folds); |
| 404 | this.folds = folds; |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * |