@Test
public void testGetTotalLoss() {
WeightedAUCCrossValLossFunction crossValLoss = new WeightedAUCCrossValLossFunction("test1");
List<LabelPredictionWeight<PredictionMap>> labelPredictionWeights = new LinkedList<>();
PredictionMap map = PredictionMap.newMap();
map.put("test1", 0.5);
labelPredictionWeights.add(new LabelPredictionWeight<PredictionMap>("test1", map, 1.0));
map = PredictionMap.newMap();
map.put("test1", 0.3);
labelPredictionWeights.add(new LabelPredictionWeight<PredictionMap>("test1", map, 1.0));
map = PredictionMap.newMap();
map.put("test1", 0.4);
labelPredictionWeights.add(new LabelPredictionWeight<PredictionMap>("test0", map, 1.0));
map = PredictionMap.newMap();
map.put("test1", 0.2);
labelPredictionWeights.add(new LabelPredictionWeight<PredictionMap>("test0", map, 1.0));
//AUC Points at 0:0 0:.5 .5:.5 1:.5 1:1
double expectedArea = .25;