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

Method classify

JSAT/src/jsat/classifiers/linear/SCD.java:158–165  ·  view source on GitHub ↗
(DataPoint data)

Source from the content-addressed store, hash-verified

156 }
157
158 @Override
159 public CategoricalResults classify(DataPoint data)
160 {
161 if (w != null && loss instanceof LossC)
162 return ((LossC) loss).getClassification(w.dot(data.getNumericalValues()));
163 else
164 throw new UntrainedModelException("Model was not trained with a classification function");
165 }
166
167 @Override
168 public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool)

Callers 1

Calls 3

getNumericalValuesMethod · 0.80
getClassificationMethod · 0.65
dotMethod · 0.45

Tested by 1