}
if (loadOK) {
String name = (new SimpleDateFormat("HH:mm:ss - ")).format(new Date());
StringBuffer outBuff = new StringBuffer();
WekaForecaster wf = (WekaForecaster)f;
String lagOptions = "";
if (wf instanceof TSLagUser) {
TSLagMaker lagMaker = ((TSLagUser)wf).getTSLagMaker();
lagOptions = Utils.joinOptions(lagMaker.getOptions());
}
String fname = wf.getAlgorithmName();
String algoName = fname.substring(0, fname.indexOf(' '));
if (algoName.startsWith("weka.classifiers.")) {
name += algoName.substring("weka.classifiers.".length());
} else {
name += algoName;
}
name += " loaded from '" + sFile.getName() + "'";
outBuff.append("Scheme:\n\t" + fname).append("\n");
outBuff.append("loaded from '" + sFile.getName() + "'\n\n");
if (lagOptions.length() > 0) {
outBuff.append("Lagged and derived variable options:\n\t").
append(lagOptions + "\n\n");
}
outBuff.append(wf.toString());
m_history.addResult(name, outBuff);
m_history.setSingle(name);
List<Object> resultList = new ArrayList<Object>();