SAGA-GIS Tool Library Documentation (v8.1.0)

Tool Boosting Classification (OpenCV)

Integration of the OpenCV Machine Learning library for Boosted Trees classification of gridded features.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputFeaturesGrid list, inputFEATURES--
Training AreasShapes, inputTRAIN_AREAS--
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--
NormalizeBooleanNORMALIZE-Default: 0
Update Colors from FeaturesBoolean, GUIRGB_COLORSUse the first three features in list to obtain blue, green, red components for class colour in look-up table.Default: 0
Load ModelFile pathMODEL_LOADUse a model previously stored to file.-
Class IdentifierTable fieldTRAIN_CLASS--
Buffer SizeFloating pointTRAIN_BUFFERFor non-polygon type training areas, creates a buffer with a diameter of specified size.Minimum: 0.000000
Default: 1.000000
Save ModelFile pathMODEL_SAVEStores model to file to be used for subsequent classifications instead of training areas.-
Maximum Tree DepthIntegerMAX_DEPTHThe maximum possible depth of the tree. That is the training algorithms attempts to split a node while its depth is less than maxDepth. The root node has zero depth.Minimum: 1
Default: 10
Minimum Sample CountIntegerMIN_SAMPLESIf the number of samples in a node is less than this parameter then the node will not be split.Minimum: 2
Default: 2
Maximum CategoriesIntegerMAX_CATEGRSCluster possible values of a categorical variable into K<=maxCategories clusters to find a suboptimal split.Minimum: 1
Default: 10
Use 1SE RuleBoolean1SE_RULEIf true then a pruning will be harsher. This will make a tree more compact and more resistant to the training data noise but a bit less accurate.Default: 1
Truncate Pruned TreesBooleanTRUNC_PRUNEDIf true then pruned branches are physically removed from the tree. Otherwise they are retained and it is possible to get results from the original unpruned (or pruned less aggressively) tree.Default: 1
Regression AccuracyFloating pointREG_ACCURACYTermination criteria for regression trees. If all absolute differences between an estimated value in a node and values of train samples in this node are less than this parameter then the node will not be split further.Minimum: 0.000000
Default: 0.010000
Weak CountIntegerWEAK_COUNTThe number of weak classifiers.Minimum: 0
Default: 100
Weight Trim RateFloating pointWGT_TRIM_RATEA threshold between 0 and 1 used to save computational time. Set this parameter to 0 to turn off this functionality.Minimum: 0.000000
Maximum: 1.000000
Default: 0.950000
Boost TypeChoiceBOOST_TYPE-Available Choices:
[0] Discrete AdaBoost
[1] Real AdaBoost
[2] LogitBoost
[3] Gentle AdaBoost
Default: 1
(*) optional

Command-line

Usage: saga_cmd imagery_opencv 9 [-FEATURES <str>] [-NORMALIZE <str>] [-CLASSES <str>] [-CLASSES_LUT <str>] [-MODEL_LOAD <str>] [-TRAIN_AREAS <str>] [-TRAIN_CLASS <str>] [-TRAIN_BUFFER <double>] [-MODEL_SAVE <str>] [-MAX_DEPTH <num>] [-MIN_SAMPLES <num>] [-MAX_CATEGRS <num>] [-1SE_RULE <str>] [-TRUNC_PRUNED <str>] [-REG_ACCURACY <double>] [-WEAK_COUNT <num>] [-WGT_TRIM_RATE <double>] [-BOOST_TYPE <str>]
  -FEATURES:<str>        	Features
	Grid list, input
  -NORMALIZE:<str>       	Normalize
	Boolean
	Default: 0
  -CLASSES:<str>         	Classification
	Grid, output
  -CLASSES_LUT:<str>     	Look-up Table
	Table, output, optional
  -MODEL_LOAD:<str>      	Load Model
	File path
  -TRAIN_AREAS:<str>     	Training Areas
	Shapes, input
  -TRAIN_CLASS:<str>     	Class Identifier
	Table field
  -TRAIN_BUFFER:<double> 	Buffer Size
	Floating point
	Minimum: 0.000000
	Default: 1.000000
  -MODEL_SAVE:<str>      	Save Model
	File path
  -MAX_DEPTH:<num>       	Maximum Tree Depth
	Integer
	Minimum: 1
	Default: 10
  -MIN_SAMPLES:<num>     	Minimum Sample Count
	Integer
	Minimum: 2
	Default: 2
  -MAX_CATEGRS:<num>     	Maximum Categories
	Integer
	Minimum: 1
	Default: 10
  -1SE_RULE:<str>        	Use 1SE Rule
	Boolean
	Default: 1
  -TRUNC_PRUNED:<str>    	Truncate Pruned Trees
	Boolean
	Default: 1
  -REG_ACCURACY:<double> 	Regression Accuracy
	Floating point
	Minimum: 0.000000
	Default: 0.010000
  -WEAK_COUNT:<num>      	Weak Count
	Integer
	Minimum: 0
	Default: 100
  -WGT_TRIM_RATE:<double>	Weight Trim Rate
	Floating point
	Minimum: 0.000000
	Maximum: 1.000000
	Default: 0.950000
  -BOOST_TYPE:<str>      	Boost Type
	Choice
	Available Choices:
	[0] Discrete AdaBoost
	[1] Real AdaBoost
	[2] LogitBoost
	[3] Gentle AdaBoost
	Default: 1