MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / clone

Method clone

JSAT/src/jsat/classifiers/OneVSOne.java:189–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers 1

testCloneMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by 1

testCloneMethod · 0.76