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

Method clone

JSAT/src/jsat/classifiers/boosting/SAMME.java:156–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

testCloneMethod · 0.95

Calls 4

cloneMethod · 0.65
sizeMethod · 0.65
addMethod · 0.45
getMethod · 0.45

Tested by 1

testCloneMethod · 0.76