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

Method testTrainC_Full

JSAT/test/jsat/classifiers/linear/SCWTest.java:47–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 @Test
48 public void testTrainC_Full()
49 {
50 System.out.println("TrainC_Full");
51 ClassificationDataSet train = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom());
52
53 ClassificationDataSet test = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom());
54
55 for (SCW.Mode mode : SCW.Mode.values())
56 {
57 SCW scwFull = new SCW(0.9, mode, false);
58 scwFull.trainC(train);
59
60 for (DataPointPair<Integer> dpp : test.getAsDPPList())
61 assertEquals(dpp.getPair().longValue(), scwFull.classify(dpp.getDataPoint()).mostLikely());
62 }
63 }
64
65 @Test
66 public void testTrainC_Diag()

Callers

nothing calls this directly

Calls 8

get2ClassLinearMethod · 0.95
getRandomMethod · 0.95
getAsDPPListMethod · 0.95
classifyMethod · 0.95
mostLikelyMethod · 0.80
trainCMethod · 0.65
getPairMethod · 0.45
getDataPointMethod · 0.45

Tested by

no test coverage detected