Hi,
I'm using this command line to train a model:
Now, I want to use this model to test new datasets (which also has 4 attributes, first att is string)
But I get error of ilegal options. How should this second command line be? So that I can keep my string attribute in the arff
Thanks in advance.
I'm using this command line to train a model:
Code:
java weka.classifiers.meta.FilteredClassifier
-t inputs/train.arff ### Total num of attributes = 4, attribute 1 is string, which is printed in the results, but ignored during training.
-x 3 -s ${i} -p 1 -distribution
-d results/file.model
-F "weka.filters.MultiFilter
-F \" weka.filters.unsupervised.attribute.RemoveType -T string\"
-F \"weka.filters.supervised.instance.SMOTE -C 0 -K 5 -P $2 -S 1\""
-W weka.classifiers.functions.MultilayerPerceptron -- -L 0.3 -M 0.2 -N 500 -V 0 -S 0 -E 20 -H 0 > results/output.txt
Code:
java weka.classifiers.meta.FilteredClassifier
-l results/file.model
-T inputs/test.arff
-p 1 -distribution
-F "weka.filters.unsupervised.attribute.RemoveType -T string"
-W weka.classifiers.functions.MultilayerPerceptron -- -L 0.3 -M 0.2 -N 500 -V 0 -S 0 -E 20 -H 0 > results/outtest.txt
Thanks in advance.