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

Method classify

JSAT/src/jsat/classifiers/trees/ERTrees.java:169–179  ·  view source on GitHub ↗
(DataPoint data)

Source from the content-addressed store, hash-verified

167 }
168
169 @Override
170 public CategoricalResults classify(DataPoint data)
171 {
172 CategoricalResults cr = new CategoricalResults(predicting.getNumOfCategories());
173
174 for(ExtraTree tree : forrest)
175 cr.incProb(tree.classify(data).mostLikely(), 1.0);
176 cr.normalize();
177 return cr;
178
179 }
180
181 private void doTraining(ExecutorService threadPool, DataSet dataSet) throws FailedToFitException
182 {

Callers 1

testCloneMethod · 0.95

Calls 5

incProbMethod · 0.95
normalizeMethod · 0.95
getNumOfCategoriesMethod · 0.80
mostLikelyMethod · 0.80
classifyMethod · 0.65

Tested by 1

testCloneMethod · 0.76