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

Method clone

JSAT/src/jsat/classifiers/trees/ERTrees.java:305–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 }
304
305 @Override
306 public ERTrees clone()
307 {
308 ERTrees clone = new ERTrees();
309 clone.forrestSize = this.forrestSize;
310 clone.useDefaultSelectionCount = this.useDefaultSelectionCount;
311 clone.useDefaultStopSize = this.useDefaultStopSize;
312 clone.baseTree = this.baseTree.clone();
313 if(this.predicting != null)
314 clone.predicting = this.predicting.clone();
315 if (this.forrest != null)
316 {
317 clone.forrest = new ExtraTree[this.forrest.length];
318 for (int i = 0; i < this.forrest.length; i++)
319 clone.forrest[i] = this.forrest[i].clone();
320 }
321
322 return clone;
323 }
324
325 @Override
326 public TreeNodeVisitor getTreeNodeVisitor()

Callers 1

testCloneMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by 1

testCloneMethod · 0.76