//config.setKlimit(2);
//config.setLearnerScoreMode(Configuration.ScoreMode.KTAILS);
config.setLearnerScoreMode(Configuration.ScoreMode.CONVENTIONAL);
LearnerEvaluationConfiguration evaluationConfiguration = new LearnerEvaluationConfiguration(null,null,config,null,null);
evaluationConfiguration.setLabelConverter(experiment.getLabelConverter());
Learner l = new AccuracyTrackerDecorator(new RPNIUniversalLearner(null,evaluationConfiguration)
{
@Override
public Pair<Integer,String> CheckWithEndUser(
@SuppressWarnings("unused") LearnerGraph model,
List<Label> question, @SuppressWarnings("unused") int valueForNoRestart,
@SuppressWarnings("unused") List<Boolean> acceptedElements,
@SuppressWarnings("unused") PairScore pairBeingMerged,
@SuppressWarnings("unused") final Object [] moreOptions)
{
questionNumber.addAndGet(1);
return new Pair<Integer,String>(graph.paths.tracePathPrefixClosed(question),null);
}
}
, graph);
sMinus = rpg.getAllSequencesPercentageInterval(1);
learn(l,sMinus);
result = result + l.getResult();
}