Is it possible to export weka results after execute it via command line?
What I am doing:
java -cp "./weka.jar" weka.classifiers.bayes.NaiveBayes -t "iris.arff" -i
But then, I have all the statistics in console, is there any way to export this? Or I have to read and write by myself?
Thanks!
An example from the Weka Primer:
So no, WEKA doesn't have a specific output parameter on the command line, but you simply redirect the output and errors to a file using
>&!
or only the output without errors using>
.In your case you could use this command to save the output to the file
NaiveBayes-iris.out
: