Re: BVDecompose Error

Peter Reutemann <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <CAHoQ12Jxr=Mg4-5=nnrDPz___hnsajLKTmAQZUjJYjTBOp-g9Q@mail.gmail.com>
> > Yes it seems I get the same error when removing the the bv.setClassIndex() method too. It is probably something very minor but I still can't seem to figure it out.
>
> I’m not familiar with it’s use.
> Maybe if you could provide us with a little more information.
> Maybe some of the data, or the command line invocation that I think you said worked, maybe why you decided to use this? Based on an example of it’s use, a paper, or why? If I remember right I did some searching on it but didn’t get much information from Google.

Since it was mentioned that it works through the SimpleCLI, why not
replicate the same approach by using the setOptions method?
Something along these lines:

Break up the commandline options into a string array:

String[] args = new String[]{
  "-t",
  "src/MostEffective2018.arff",
  "-W",
  "weka.classifiers.trees.RandomForest",
  "--",
  "-I",
  "100",
  "-depth",
  "0",
};

And use these options to configure your class:

BVDecomposeSegCVSub bv = new BVDecomposeSegCVSub();
bv.setOptions(args);
bv.decompose();
System.out.println(bv);

Javadoc with commandline flags:
https://weka.sourceforge.io/doc.dev/weka/classifiers/BVDecomposeSegCVSub.html
https://weka.sourceforge.io/doc.dev/weka/classifiers/trees/RandomForest.html

Cheers, Peter
-- 
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 577-5304
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.