28 Apr 2012 06:21
Re: error in command line grid search for smo parameters
Krishnaveni Palaniappan <kpalaniappan <at> lbl.gov>
2012-04-28 04:21:43 GMT
2012-04-28 04:21:43 GMT
On Apr 27, 2012, at 1:29 AM, wekalist-request <at> list.scms.waikato.ac.nz wrote:
Hi krishna,
Have you tried the scape character '\' before the '(' and ')'?
Just try to use "-y-expression pow\(BASE,I\)" instead of "-y-expression
pow(BASE,I)" in the command line.
I also want to do grid search of parms for LibSVM, but I ran into the following java exception. I can't quite see where the problem is in the command specification.
I'm using the 'April 27th snapshot' of the developer version for this trial.
## libSVM trial GridSearch failed!!
java -Xmx32g weka.Run weka.classifiers.meta.FilteredClassifier -F "weka.filters.unsupervised.attribute.Remove -R 1-3" -t ../pmegTrain.arff -d pmegTrain.libsvm.grid.model -i -k -W weka.classifiers.meta.GridSearch -- -E KAP -y-property classifier.kernel.gamma -y-min -5.0 -y-max 2.0 -y-step 1.0 -y-base 10.0 -y-expression pow\(BASE,I\) -filter weka.filters.AllFilter -x-property classifier.c -x-min 1.0 -x-max 16.0 -x-step 1.0 -x-base 10.0 -x-expression I -sample-size 100.0 -traversal COLUMN-WISE -log-file pmegTrain.lbisvm.grid.log -num-slots 1 -S 1 -W weka.classifiers.functions.LibSVM -- -S 0 -K 2 -D 3 -G 0.0 -R 0.0 -N 0.5 -M 40.0 -C 1.0 -E 0.0010 -P 0.1 -Z -B -model pmegTrain.libsvm.grid.model2 > pmegTrain.libsvm.grid.info
java.beans.IntrospectionException: Method not found: isC
at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:106)
at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:70)
at weka.core.PropertyPath.find(PropertyPath.java:386)
at weka.core.PropertyPath.getPropertyDescriptor(PropertyPath.java:432)
at weka.core.PropertyPath.getPropertyDescriptor(PropertyPath.java:448)
at weka.classifiers.meta.GridSearch$SetupGenerator.setValue(GridSearch.java:1618)
at weka.classifiers.meta.GridSearch$SetupGenerator.setup(GridSearch.java:1661)
at weka.classifiers.meta.GridSearch$EvaluationTask.run(GridSearch.java:1790)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
at weka.classifiers.meta.GridSearch$SetupGenerator.setValue(GridSearch.java:1619)
at weka.classifiers.meta.GridSearch$SetupGenerator.setup(GridSearch.java:1661)
at weka.classifiers.meta.GridSearch$EvaluationTask.run(GridSearch.java:1790)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Thanks in advance for looking into this.
thanks
krishna
Hope this helps,
Sebastian
On Thu, 26 Apr 2012 19:02:02 -0700, Krishnaveni Palaniappan wrote:Dear Weka members,
I'm trying to do grid search for the correct -C and -gamma parameters
for SMO
on my training dataset using weka in command line. I used the Weka
Explorer to set the
correct configuration syntax and added the train dataset and model
arguments
as below.
But I keep getting this blind error: "Badly placed ()'s." I can't
quiet see where the syntax error is. The same works fine in Explorer.
% java -Xmx32g weka.classifiers.meta.FilteredClassifier -F
"weka.filters.unsupervised.attribute.Remove -R 1-3" -t
../pmegTrain.arff -d
pmegTrain.smo.grid.model -i -k -W weka.classifiers.meta.GridSearch --
-E KAP
-y-property classifier.kernel.gamma -y-min -5.0 -y-max 2.0 -y-step
1.0
-y-base 10.0 -y-expression pow(BASE,I) -filter weka.filters.AllFilter
-x-property class ifier.c -x-min 1.0 -x-max 16.0 -x-step 1.0 -x-base
10.0
-x-expression I -sample-size 100.0 -traversal COLUMN-WISE -log-file
pmeg.log
-num-slots 1 -S 1 -W weka.classifiers.functions.SMO -- -C 1.0 -L
0.0010 -P
1.0E-12 -N 0 -M -V -1 -W 1 -K
"weka.classifiers.functions.supportVector.RBFKernel -C 250007 -G
0.01" >
pmegTrain.smo.grid.info
Badly placed ()'s.
Can someone please help me correct this? I'm using linux version
3.7.5
thanks
krishna
_______________________________________________ Wekalist mailing list Send posts to: Wekalist <at> list.scms.waikato.ac.nz List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
RSS Feed