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

Method classify

JSAT/src/jsat/classifiers/trees/DecisionTree.java:296–304  ·  view source on GitHub ↗
(DataPoint data)

Source from the content-addressed store, hash-verified

294
295
296 @Override
297 public CategoricalResults classify(DataPoint data)
298 {
299 if(data.numNumericalValues() != root.stump.numNumeric() || data.numCategoricalValues() != root.stump.numCategorical())
300 throw new ModelMismatchException("Tree expected " + root.stump.numNumeric() + " numeric and " +
301 root.stump.numCategorical() + " categorical features, instead received data with " +
302 data.numNumericalValues() + " and " + data.numCategoricalValues() + " features respectively");
303 return root.classify(data);
304 }
305
306 @Override
307 public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool)

Callers 2

testCloneMethod · 0.95

Calls 5

numNumericalValuesMethod · 0.80
numNumericMethod · 0.80
numCategoricalValuesMethod · 0.80
numCategoricalMethod · 0.80
classifyMethod · 0.65

Tested by 2

testCloneMethod · 0.76