()
| 72 | } |
| 73 | |
| 74 | @Override |
| 75 | public DDAG clone() |
| 76 | { |
| 77 | DDAG clone = new DDAG(baseClassifier.clone(), isConcurrentTraining()); |
| 78 | if (oneVone != null) |
| 79 | { |
| 80 | clone.oneVone = new Classifier[oneVone.length][]; |
| 81 | for (int i = 0; i < oneVone.length; i++) |
| 82 | { |
| 83 | clone.oneVone[i] = new Classifier[oneVone[i].length]; |
| 84 | for (int j = 0; j < oneVone[i].length; j++) |
| 85 | clone.oneVone[i][j] = oneVone[i][j].clone(); |
| 86 | } |
| 87 | } |
| 88 | if(predicting != null) |
| 89 | clone.predicting = predicting.clone(); |
| 90 | |
| 91 | return clone; |
| 92 | } |
| 93 | } |