| 154 | } |
| 155 | |
| 156 | @Override |
| 157 | public SAMME clone() |
| 158 | { |
| 159 | SAMME clone = new SAMME(weakLearner.clone(), maxIterations); |
| 160 | if(this.hypWeights != null) |
| 161 | clone.hypWeights = new DoubleList(this.hypWeights); |
| 162 | if(this.hypoths != null) |
| 163 | { |
| 164 | clone.hypoths = new ArrayList<Classifier>(this.hypoths.size()); |
| 165 | for(int i = 0; i < this.hypoths.size(); i++) |
| 166 | clone.hypoths.add(this.hypoths.get(i).clone()); |
| 167 | } |
| 168 | if(this.predicting != null) |
| 169 | clone.predicting = this.predicting.clone(); |
| 170 | |
| 171 | return clone; |
| 172 | } |
| 173 | |
| 174 | @Override |
| 175 | public List<Parameter> getParameters() |