| 197 | } |
| 198 | |
| 199 | @Override |
| 200 | public OneVSAll clone() |
| 201 | { |
| 202 | OneVSAll clone = new OneVSAll(baseClassifier.clone(), concurrentTraining); |
| 203 | if(this.predicting != null) |
| 204 | clone.predicting = this.predicting.clone(); |
| 205 | if(this.oneVsAlls != null) |
| 206 | { |
| 207 | clone.oneVsAlls = new Classifier[this.oneVsAlls.length]; |
| 208 | for(int i = 0; i < oneVsAlls.length; i++) |
| 209 | if(this.oneVsAlls[i] != null) |
| 210 | clone.oneVsAlls[i] = this.oneVsAlls[i].clone(); |
| 211 | } |
| 212 | return clone; |
| 213 | } |
| 214 | |
| 215 | @Override |
| 216 | public boolean supportsWeightedData() |