SAGA-GIS Tool Library Documentation (v9.2.0)

Tool SVM Classification

Support Vector Machine (SVM) based classification for grids.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsgrid list, inputGRIDS--
Training Areasshapes, inputROI--
OutputClassificationgrid, outputCLASSES--
Look-up Table (*)table, output, optionalCLASSES_LUTA reference list of the grid values that have been assigned to the training classes.-
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
ScalingchoiceSCALING-Available Choices:
[0] none
[1] normalize (0-1)
[2] standardize
Default: 2
Verbose MessagesbooleanMESSAGE-Default: 0
Model SourcechoiceMODEL_SRC-Available Choices:
[0] create from training areas
[1] restore from file
Default: 0
Restore Model from Filefile pathMODEL_LOAD--
Class Identifiertable fieldROI_ID--
Store Model to Filefile pathMODEL_SAVE--
SVM TypechoiceSVM_TYPE-Available Choices:
[0] C-SVC
[1] nu-SVC
[2] one-class SVM
[3] epsilon-SVR
[4] nu-SVR
Default: 0
Kernel TypechoiceKERNEL_TYPElinear: u'*v polynomial: (gamma*u'*v + coef0)^degree radial basis function: exp(-gamma*|u-v|^2) sigmoid: tanh(gamma*u'*v + coef0)Available Choices:
[0] linear
[1] polynomial
[2] radial basis function
[3] sigmoid
Default: 2
Degreeinteger numberDEGREEdegree in kernel functionDefault: 3
Gammafloating point numberGAMMAgamma in kernel functionDefault: 0.000000
coef0floating point numberCOEF0coef0 in kernel functionDefault: 0.000000
Cfloating point numberCOSTparameter C (cost) of C-SVC, epsilon-SVR, and nu-SVRDefault: 1.000000
nu-SVRfloating point numberNUparameter nu of nu-SVC, one-class SVM, and nu-SVRDefault: 0.500000
SVR Epsilonfloating point numberEPS_SVRepsilon in loss function of epsilon-SVRDefault: 0.100000
Cache Sizefloating point numberCACHE_SIZEcache memory size in MBDefault: 100.000000
Epsilonfloating point numberEPStolerance of termination criterionDefault: 0.001000
ShrinkingbooleanSHRINKINGwhether to use the shrinking heuristicsDefault: 0
Probability EstimatesbooleanPROBABILITYwhether to train a SVC or SVR model for probability estimatesDefault: 0
Cross Validationinteger numberCROSSVALn-fold cross validation: n must > 1Minimum: 1
Default: 1
(*) optional

Command-line

Usage: saga_cmd imagery_svm 0 [-GRIDS <str>] [-CLASSES <str>] [-CLASSES_LUT <str>] [-SCALING <str>] [-MESSAGE <str>] [-MODEL_SRC <str>] [-MODEL_LOAD <str>] [-ROI <str>] [-ROI_ID <str>] [-MODEL_SAVE <str>] [-SVM_TYPE <str>] [-KERNEL_TYPE <str>] [-DEGREE <num>] [-GAMMA <double>] [-COEF0 <double>] [-COST <double>] [-NU <double>] [-EPS_SVR <double>] [-CACHE_SIZE <double>] [-EPS <double>] [-SHRINKING <str>] [-PROBABILITY <str>] [-CROSSVAL <num>]
  -GRIDS:<str>        	Grids
	grid list, input
  -CLASSES:<str>      	Classification
	grid, output
  -CLASSES_LUT:<str>  	Look-up Table
	table, output, optional
  -SCALING:<str>      	Scaling
	choice
	Available Choices:
	[0] none
	[1] normalize (0-1)
	[2] standardize
	Default: 2
  -MESSAGE:<str>      	Verbose Messages
	boolean
	Default: 0
  -MODEL_SRC:<str>    	Model Source
	choice
	Available Choices:
	[0] create from training areas
	[1] restore from file
	Default: 0
  -MODEL_LOAD:<str>   	Restore Model from File
	file path
  -ROI:<str>          	Training Areas
	shapes, input
  -ROI_ID:<str>       	Class Identifier
	table field
  -MODEL_SAVE:<str>   	Store Model to File
	file path
  -SVM_TYPE:<str>     	SVM Type
	choice
	Available Choices:
	[0] C-SVC
	[1] nu-SVC
	[2] one-class SVM
	[3] epsilon-SVR
	[4] nu-SVR
	Default: 0
  -KERNEL_TYPE:<str>  	Kernel Type
	choice
	Available Choices:
	[0] linear
	[1] polynomial
	[2] radial basis function
	[3] sigmoid
	Default: 2
  -DEGREE:<num>       	Degree
	integer number
	Default: 3
  -GAMMA:<double>     	Gamma
	floating point number
	Default: 0.000000
  -COEF0:<double>     	coef0
	floating point number
	Default: 0.000000
  -COST:<double>      	C
	floating point number
	Default: 1.000000
  -NU:<double>        	nu-SVR
	floating point number
	Default: 0.500000
  -EPS_SVR:<double>   	SVR Epsilon
	floating point number
	Default: 0.100000
  -CACHE_SIZE:<double>	Cache Size
	floating point number
	Default: 100.000000
  -EPS:<double>       	Epsilon
	floating point number
	Default: 0.001000
  -SHRINKING:<str>    	Shrinking
	boolean
	Default: 0
  -PROBABILITY:<str>  	Probability Estimates
	boolean
	Default: 0
  -CROSSVAL:<num>     	Cross Validation
	integer number
	Minimum: 1
	Default: 1