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

Method clone

JSAT/src/jsat/classifiers/OneVSAll.java:199–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

testCloneMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by 1

testCloneMethod · 0.76