Hello,

I'm trying to use TrainImageClassifier Application, with svm model and 
optimization.

OTB Version:*3.18.1*

I set all parameters with SetParameter...:

model= otb.Registry.CreateApplication("TrainImagesClassifier")

model.SetParameterStringList("io.il","im.tif")

model.SetParameterStringList("io.vd","training.shp")

model.SetParameterString("io.imstat","stats.xml")

model.SetParameterString("io.confmatout","mat.csv")

model.SetParameterString("io.out","model.svm")

model.SetParameterFloat("sample.vtr",0.5)

model.SetParameterString("sample.vfn","Class")

model.SetParameterString("classifier","svm")

model.SetParameterString("classifier.svm.m","csvc")

model.SetParameterString("classifier.svm.k","rbf")

model.SetParameterFloat("classifier.svm.c",1)

model.SetParameterFloat("classifier.svm.gamma",1)

model.SetParameterInt("rand",3)

model.SetParameterInt("classifier.svm.opt",0)

model.ExecuteAndWriteOutput()

This program works and gives results. But when I change the 
classifier.svm.opt to 1: I got same results and confusion matrix. 
I try to use model.SetParameterString("classifier.svm.opt",true) and false, 
but nothing change.
I use the command line application too, with parameter 0,1 and 
true,false,and change default values for c and gamma ( 1 to 100000 or 0.5), 
always same results...

Any help is welcome
Thank you,

Benjamin

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to