()
| 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() |
nothing calls this directly
no test coverage detected