Test of classify method, of class ALMA2.
()
| 50 | * Test of classify method, of class ALMA2. |
| 51 | */ |
| 52 | @Test |
| 53 | public void testTrain_C() |
| 54 | { |
| 55 | System.out.println("classify"); |
| 56 | |
| 57 | ClassificationDataSet train = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom()); |
| 58 | |
| 59 | ALMA2 alma = new ALMA2(); |
| 60 | alma.setEpochs(1); |
| 61 | |
| 62 | alma.trainC(train); |
| 63 | |
| 64 | ClassificationDataSet test = FixedProblems.get2ClassLinear(200, RandomUtil.getRandom()); |
| 65 | |
| 66 | for(DataPointPair<Integer> dpp : test.getAsDPPList()) |
| 67 | assertEquals(dpp.getPair().longValue(), alma.classify(dpp.getDataPoint()).mostLikely()); |
| 68 | |
| 69 | } |
| 70 | |
| 71 | } |
nothing calls this directly
no test coverage detected