public static InitialConfigurationAndData loadInitialAndPopulateInitialConfiguration(String argPTAFileName, Configuration configToUse, ConvertALabel converter) throws IOException
{
InitialConfigurationAndData outcome = new InitialConfigurationAndData();
final java.io.FileInputStream inputStream = new java.io.FileInputStream(argPTAFileName);
final LearnerSimulator simulator = new LearnerSimulator(inputStream,true,converter);
Configuration defaultConfig = configToUse.copy();
//defaultConfig.setRejectPositivePairsWithScoresLessThan(1);
assert converter != null : "we expect this methods to be used with large graphs and Array matrix types hence converter must be set";
outcome.learnerInitConfiguration = simulator.readLearnerConstructionData(defaultConfig);
outcome.learnerInitConfiguration.setLabelConverter(converter);
final org.w3c.dom.Element nextElement = simulator.expectNextElement(StatechumXML.ELEM_INIT.name());
outcome.initial = simulator.readInitialData(nextElement);
inputStream.close();
return outcome;
}