()
| 63 | } |
| 64 | |
| 65 | @Test |
| 66 | public void testTrainC_Diag() |
| 67 | { |
| 68 | System.out.println("TrainC_Diag"); |
| 69 | ClassificationDataSet train = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom()); |
| 70 | |
| 71 | ClassificationDataSet test = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom()); |
| 72 | |
| 73 | for (SCW.Mode mode : SCW.Mode.values()) |
| 74 | { |
| 75 | SCW scwDiag = new SCW(0.9, mode, true); |
| 76 | scwDiag.trainC(train); |
| 77 | |
| 78 | for (DataPointPair<Integer> dpp : test.getAsDPPList()) |
| 79 | assertEquals(dpp.getPair().longValue(), scwDiag.classify(dpp.getDataPoint()).mostLikely()); |
| 80 | } |
| 81 | } |
| 82 | } |
nothing calls this directly
no test coverage detected