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

Method classify

JSAT/src/jsat/classifiers/linear/kernelized/ALMA2K.java:285–295  ·  view source on GitHub ↗
(DataPoint data)

Source from the content-addressed store, hash-verified

283 }
284
285 @Override
286 public CategoricalResults classify(DataPoint data)
287 {
288 double wx = getScore(data);
289 CategoricalResults cr =new CategoricalResults(2);
290 if(wx < 0)
291 cr.setProb(0, 1.0);
292 else
293 cr.setProb(1, 1.0);
294 return cr;
295 }
296
297 @Override
298 public double getScore(DataPoint dp)

Callers 1

testCloneMethod · 0.95

Calls 2

getScoreMethod · 0.95
setProbMethod · 0.95

Tested by 1

testCloneMethod · 0.76