Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

"RemoveType" Filter when testing model in commandLine

$
0
0
Hi,

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

Now, I want to use this model to test new datasets (which also has 4 attributes, first att is string)


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

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.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>