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

Method clone

JSAT/src/jsat/classifiers/DDAG.java:74–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 1

testCloneMethod · 0.95

Calls 2

isConcurrentTrainingMethod · 0.80
cloneMethod · 0.65

Tested by 1

testCloneMethod · 0.76