PTASequenceSet plusPTA = new PTASequenceSet();plusPTA.addAll(sPlus);PTASequenceSet minusPTA = new PTASequenceSet();minusPTA.addAll(sMinus);
changeParametersOnComputeStateScores(l.getScoreComputer());
RecordProgressDecorator testDecorator = null;
Configuration recordingConfig = Configuration.getDefaultConfiguration().copy();
recordingConfig.setLearnerToUse(LEARNER.LEARNER_BLUEFRINGE_DEC2007);
try {
String logfileName = FileType.LOG.getFileName(outputDir+"_"+renumberSeed+File.separatorChar+instanceID+"_"+(new File(inputFileName).getName())+"_"+recordingConfig.getLearnerToUse(),"");
testDecorator = new RecordProgressDecorator(l.getLearner(),new FileOutputStream(logfileName),1,recordingConfig,true);
//testDecorator = new MatchProgressDecorator(l,new FileReader(getFileName(FileType.DATA)));
} catch (IOException e) {
IllegalArgumentException ex = new IllegalArgumentException("failed to construct recording decorator: "+e.getMessage());ex.initCause(e);
throw ex;
}
Collection<List<String>> testSet = wm.getFullTestSet();
testDecorator.writeLearnerEvaluationData(new LearnerEvaluationConfiguration(graph, testSet, recordingConfig,null));
changeParametersOnLearner(l);
learningOutcome = testDecorator.learnMachine(plusPTA, minusPTA.getData());
l.setQuestionCounter(0);
FSMStructure learned = WMethod.getGraphData(learningOutcome);
PTA_computePrecisionRecall precRec = new PTA_computePrecisionRecall(learned);
PTATestSequenceEngine engineTestSet = new PTA_FSMStructure(fsm);