| 187 | } |
| 188 | |
| 189 | @Override |
| 190 | public OneVSOne clone() |
| 191 | { |
| 192 | OneVSOne clone = new OneVSOne(baseClassifier.clone(), concurrentTrain); |
| 193 | if (oneVone != null) |
| 194 | { |
| 195 | clone.oneVone = new Classifier[oneVone.length][]; |
| 196 | for (int i = 0; i < oneVone.length; i++) |
| 197 | { |
| 198 | clone.oneVone[i] = new Classifier[oneVone[i].length]; |
| 199 | for (int j = 0; j < oneVone[i].length; j++) |
| 200 | clone.oneVone[i][j] = oneVone[i][j].clone(); |
| 201 | } |
| 202 | } |
| 203 | if(predicting != null) |
| 204 | clone.predicting = predicting.clone(); |
| 205 | |
| 206 | return clone; |
| 207 | } |
| 208 | |
| 209 | @Override |
| 210 | public List<Parameter> getParameters() |