I'm trying to run the following weka AdaBoostM1 classifier to boost a J48 tree that is configured for pruning below:
java -classpath ./bin/weka.jar weka.classifiers.meta.AdaBoostM1 -P 100 -S 1 -I 10 -W weka.classifiers.trees.J48 -- -C 0.25 -M 2 \ -t ./data/inputfile.arff > ./results/output.txt &
The configuration string was copied directly from the weka gui and in fact runs there without any problems. However if I try to run that same configuration string on the command-line, weka throws the following error:
Weka exception: No training file and no object input file given.
General options:
-h or -help Output help information. -synopsis or -info Output synopsis for classifier (use in conjunction with -h) -t Sets training file. -T Sets test file. If missing, ...
If I remove the parameters that follow the J48 tree classifer i.e. the string " -- -C 0.25 -M 2" then it works without any problems:
java -classpath ./bin/weka.jar weka.classifiers.meta.AdaBoostM1 -P 100 -S 1 -I 10 -W weka.classifiers.trees.J48 \ -t ./data/inputfile.arff > ./results/output.txt &
Any assistance would be appreciated.