use of ml.shifu.shifu.core.eval.PerformanceExtractor in project shifu by ShifuML.
the class AreaUnderCurveTest method calculateAreaTest.
@Test
public void calculateAreaTest() {
PerformanceExtractor xExtractor = Performances.fpr();
PerformanceExtractor yExtractor = Performances.recall();
List<PerformanceObject> nullList = null;
List<PerformanceObject> oneList = Arrays.asList(new PerformanceObject());
Assert.assertEquals(AreaUnderCurve.calculateArea(nullList, xExtractor, yExtractor), 0.0);
Assert.assertEquals(AreaUnderCurve.calculateArea(oneList, xExtractor, yExtractor), 0.0);
}
Aggregations