Does anyone know how I am supposed to save a model after building it whilst
applying cross validation? The docs aren't very helpfull on this as the
wekadoc say that a parameter -l and -d are to be used to load and save a
classifier respectively, but this only works when running from a commandline
so that's not usefull.
Then there's the weka wiki saying:
but after using in the following manner it doesn't write anything at all. I
also wasn't able to find any method in Evaluation that returns the
SimpleLinearRegression lr = new SimpleLinearRegression();
FilteredClassifier fc = new FilteredClassifier();
Evaluation eval = new Evaluation(instances);
eval.crossValidateModel(fc, instances, 10, new Random(1));
weka.core.SerializationHelper.write(targetDir + "\\linReg.model", fc);
Am I missing something obvious *again* ? :(
View this message in context: http://weka.8497.n7.nabble.com/How-to-save-a-model-after-cross-validation-t…
Sent from the WEKA mailing list archive at Nabble.com.