[R] problem with RWeka Weka_control RandomForest

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Tue Dec 1 18:10:05 CET 2009


On Tue, 1 Dec 2009, Itziar Frades Alzueta wrote:

> Dear All,
>
>
>
> I am finding trouble trying to guild a Wrapper using random forest to
> evaluate the subsets:
>
>
>
> I do:
>
> nombi <-
> make_Weka_filter("weka/filters/supervised/attribute/AttributeSelection")
>
> datbin<- nombi(gene ~., data=X1X2X4X5W, control =Weka_control(
> S=list("weka.attributeSelection.GeneticSearch"),
> E=list("weka.attributeSelection.WrapperSubsetEval"),B =
> list("weka.classifiers.trees.RandomForest")))
>
>
>
> I get the following error:
>
> Exception in thread "main" java.lang.Exception: Illegal options: -B
> weka.classifiers.trees.RandomForest

The error is fairly explicit, isn't it? There is no -B option for 
AttributeSelection, see
   WOW("weka/filters/supervised/attribute/AttributeSelection")

hth,
Z

>      at weka.core.Utils.checkForRemainingOptions(Unknown Source)
>
>      at
> weka.filters.supervised.attribute.AttributeSelection.setOptions(Unknown
> Source)
>
>
>
> I tryied specifying more parameters and got the same error:
>
>
>
> I do:
>
> datbin<- nombi(gene ~., data=X1X2X3X4W,  control =Weka_control(
> S=list("weka.attributeSelection.GeneticSearch"),
> E=list("weka.attributeSelection.WrapperSubsetEval"),B =
> list("weka.classifiers.trees.RandomForest -F 5 -T 0.01 -R 1 -- -I 10 -K
> 0 -S 1")))
>
>
>
> I get the following error:
>
> Exception in thread "main" java.lang.Exception: Illegal options: -B
> weka.classifiers.trees.RandomForest -F 5 -T 0.01 -R 1 -- -I 10 -K 0 -S 1
>
>
>      at weka.core.Utils.checkForRemainingOptions(Unknown Source)
>
>      at
> weka.filters.supervised.attribute.AttributeSelection.setOptions(Unknown
> Source)
>
>
>
>
>
>
>
>
>
>
>
>
> This e-mail is from CIC bioGUNE. The e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised dissemination or copying of this e-mail or its attachments, and any use or disclosure of any information contained in them, is strictly prohibited and may be illegal. If you have received this e-mail in error, please notify or telephone + 34 944 06 13 00 and delete it from your system.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>




More information about the R-help mailing list