[R] problem with RWeka Weka_control RandomForest

Itziar Frades Alzueta
Tue, 01 Dec 2009 16:52:03 -0000

Dear All,



I am finding trouble trying to build 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

      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)



Regards,

Itziar frades












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]]