I explain my message : before I only used otbcli_TrainImagesClassifier to train on 50% on pixels and to keep 50% for validation, (-sample.vrt 0.5). but when I try it doesn't work (even if with -sample.bm -1) :
otbcli_TrainImagesClassifier -io.il /mnt/DATA/Sentinel-2/SITS/SITS_TCJ.tif -io.vd ROI_32631.sqlite -sample.vfn level3 -io.confmatout confTest.csv -io.out model.test -sample.vtr 0.5 -sample.bm -1 2017 Feb 03 18:08:18 : Application.logger (INFO) Sampling rates : >> className requiredSamples totalSamples rate > > 1 50 85 0.588235 > > 10 50 55 0.909091 > > 11 50 107 0.46729 > > 12 50 75 0.666667 > > 13 50 53 0.943396 > > 14 50 50 1 > > 15 50 219 0.228311 > > 2 50 269 0.185874 > > 3 50 224 0.223214 > > 4 50 81 0.617284 > > 5 50 158 0.316456 > > 6 50 140 0.357143 > > 7 50 227 0.220264 > > 8 50 228 0.219298 > > 9 50 209 0.239234 > > So OTB keeps the maximum of the class 14 (50 training samples), but I tell him to only train with 50% of each sample per class. What to do ? Thanks Le mardi 31 janvier 2017 19:16:49 UTC+1, Nicolaï Van Lennepkade a écrit : > > Hello, > > I tried with the new vector classifier to make a sample selection on 50% > of each class, and to keep the rest (50%) to validate the data. > Everything is ok to keep 50% randomly (or periodicly). > > But I was unable to save the unselected samples or to make a parameter to > select the opposite of my initial selection. > > Is there a way to use SampleSelection to save to another file the > unselected sample to validate later ? > > Thank you > -- -- 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.
