}
final PrintStream out = System.out;
final PrintStream err = System.err;
System.setOut(NoPrintStream.NO_PRINTSTREAM);
System.setErr(NoPrintStream.NO_PRINTSTREAM);
Model model = Linear.train(problem, parameter);
System.setOut(err);
System.setOut(out);
problem = null;
wmodel = model.getFeatureWeights();
labels = model.getLabels();
nr_class = model.getNrClass();
nr_feature = model.getNrFeature();
if (!saveInstanceFiles) {
getFile(".ins").delete();
}
} catch (OutOfMemoryError e) {
throw new LibException("Out of memory. Please increase the Java heap size (-Xmx<size>). ", e);