Sets the stopping size for tree growth. When a node has less than or equal to stopSize data points to train from, it terminates and produces a leaf node. @param stopSize the size of the testing set to refuse to split
(int stopSize)
| 100 | * @param stopSize the size of the testing set to refuse to split |
| 101 | */ |
| 102 | public void setStopSize(int stopSize) |
| 103 | { |
| 104 | if(stopSize <= 0) |
| 105 | throw new ArithmeticException("The stopping size must be a positive value"); |
| 106 | this.stopSize = stopSize; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Returns the stopping size for tree growth |