Train a SVM classifier based on labeled geometries and a list of features to consider.
This application trains a SVM classifier based on labeled geometries and a list of features to consider for classification.
This section describes in details the parameters available for this application. Table 5.71, page 706 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is TrainOGRLayersClassifier.
Parameter key | Parameter type |
Parameter description |
inshp | Input File name |
Name of the input shapefile |
instats | Input File name |
XML file containing mean and variance of each feature. |
outsvm | Output File name |
Output model filename. |
feat | List |
List of features to consider for classification. |
cfield | String |
Field containing the class id for supervision |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
Experimental. For now only shapefiles are supported. Tuning of SVM classifier is not available.
This application has been written by David Youssefi during internship at CNES.
These additional ressources can be useful for further information: