Attribute m5 = AttributeFactory.createAttribute("NDCG", Ontology.REAL);
Attribute m6 = AttributeFactory.createAttribute("MAP", Ontology.REAL);
List<Attribute> attr=new ArrayList<Attribute>();
attr.add(m1); attr.add(m2); attr.add(m3); attr.add(m4); attr.add(m5); attr.add(m6);
MemoryExampleTable a=new MemoryExampleTable(attr);
double [] a1={result.get("AUC"),result.get("prec@5"),result.get("prec@10"), result.get("prec@15"),result.get("NDCG"),result.get("MAP")};
DoubleArrayDataRow row=new DoubleArrayDataRow(a1);
a.addDataRow(row);
PerformanceVector result1 = new PerformanceVector();
EstimatedPerformance performance = new EstimatedPerformance("AUC", a1[0],1,false);
EstimatedPerformance performance1 = new EstimatedPerformance("prec@5", a1[1],1,false);
EstimatedPerformance performance2 = new EstimatedPerformance("prec@10", a1[2],1,false);
EstimatedPerformance performance3 = new EstimatedPerformance("prec@15", a1[3],1,false);
EstimatedPerformance performance4 = new EstimatedPerformance("NDCG", a1[4],1,false);
EstimatedPerformance performance5 = new EstimatedPerformance("MAP", a1[5],1,false);
result1.addCriterion(performance);
result1.addCriterion(performance1);
result1.addCriterion(performance2);
result1.addCriterion(performance3);
result1.addCriterion(performance4);
result1.addCriterion(performance5);
performanceOutput.deliver(result1);
exampleSetOutput.deliver(a.createExampleSet());
}