Tuesday, September 24, 2013

weka - Saving and loading models

weka - Saving and loading models: "You save a trained classifier with the -d option (dumping), e.g.:
java weka.classifiers.trees.J48 -t /some/where/train.arff -d /other/place/j48.model
And you can load it with -l and use it on a test set, e.g.:
java weka.classifiers.trees.J48 -l /other/place/j48.model -T /some/where/test.arff"

'via Blog this'