pairC=new PairScore(tentativeGraph.findVertex("A1"), tentativeGraph.findVertex("B2"),0,0),
pairD=new PairScore(tentativeGraph.findVertex("A1"), tentativeGraph.findVertex("B2"),1,0);
WekaDataCollector dataCollector = new WekaDataCollector();
List<PairRank> assessors = new ArrayList<PairRank>(20);
assessors.add(dataCollector.new PairRank("statechum score")
{// 1
@Override
public long getValue(PairScore pair) {
return pair.getScore();
}
@Override
public boolean isAbsolute() {
return false;
}
});
assessors.add(testClassifier.new PairRank("statechum compatibility score")
{// 2
@Override
public long getValue(PairScore pair) {
return pair.getAnotherScore();
}
@Override
public boolean isAbsolute() {
return false;
}
});
assessors.add(testClassifier.new PairRank("1 for B or C, 0 otherwise")
{// 3
@Override
public long getValue(PairScore pair) {
return (pair == pairB || pair == pairC)?1:0;
}