Hello,
Thank you for your reply.
Indeed, it is sample.vtr attribute which is in question.
I set it with the value 0 as indicated in the documentation in order to use all 
the objects of my layer for training :
"*Training and validation sample ratio*: Ratio between training and validation 
samples (0.0 = all training, 1.0 = all validation) (default = 0.5)".

I would like to use another file for validation and compute final confusion 
matrix.So I don't understand why it does not work ..?

Regards,
Julien


Le mardi 24 avril 2018 11:10:35 UTC+2, Julien a écrit :
>
> Hello, 
>
>
> I'm having an error when I use the otbcli_TrainImagesClassifier function 
> on the command line. An error appears a few seconds after the launch of 
> the algorithm ; This error is not well documented : 
> "(FATAL): itk::ERROR: Failed to open GDALDataset file 
> C:\Documents\test_classif_b_indices_fin_2.svm_samplesValid_1.shp : " There 
> is nothing after the ":" I'm using OTB 6.4.0 on windows 10.
>
> I'm using SVM algorithm to produce my model with a command like this :
> otbcli_TrainImagesClassifier ^
> -io.il D:\Documents\image.tif ^
> -io.vd D:\Documents\training.shp ^
> -sample.vfn class ^
> -sample.vtr 0 ^
> -classifier libsvm ^
> -classifier.libsvm.k linear ^
> -io.imstat D:\Documents\image_stats.xml ^
> -io.out D:\Documents\model.svm
>
>
> When I use this function from the library in Monteverdi, the error does 
> not appear, the model is produced correctly.
>
>
> Could you tell me if this is a setup problem? or if it's a bug related to 
> itk, or GDAL?
>
> Thank you,
>
> regards,
> Julien
>

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