Random Forest Classification Tool
This task executes a Random Forest algorithm using multiple decision trees against the provided input raster, then performs classification. It creates a set of decision trees from a randomly selected subset of the training dataset.
This tool performs supervised classification on a single raster. You provide an input raster, ROIs, and parameter settings to generate a classified raster. For more advanced options, you can label data on one or more rasters in the Machine Learning Labeling Tool, train a model, and perform classification using the model in the Machine Learning Classification Tool, or build a workflow in the ENVI Modeler.
For background on the algorithm used, see Random Forest Classification.
- From the Toolbox, select Machine Learning > Supervised > Random Forest Classification. The Random Forest Classification dialog appears.
- Select an Input Raster, perform optional spatial and spectral subsetting and/or masking, then click OK.
- In the Input ROIs field, select an ROI file (.xml) that indicates the labeled pixels for the desired classes in the training raster. The ROIs must fall within the boundary of the input raster.
- Specify the ROI classes to use as background in the Background Labels field. These indicate classes of no interest.
-
Select Yes or No for Balance Classes, to specify whether all classes should be considered equal during training. Selecting Yes helps to account for classes with few samples compared to classes with many samples.
-
In the Max Features field, specify the number of features to consider when looking for the best split. The options are:
-
In the Custom Max Features field, specify the number of features to consider when looking for the best split. If specified, this value will override the Max Features setting.
-
In the Estimators field, enter the number of decision trees to use. The estimators are the predictors of the algorithm. The default is 100.
- In the Max Depth field, specify the maximum depth of the tree. If not specified, then nodes are expanded until all leaves are pure.
- In the OOB field, specify whether to use out-of-bag samples to estimate the generalization score. The default is No.
- In the Output Raster field, enter a location and filename for the classification raster.In the Output Raster URI field, select a location and filename for the machine learning raster.
- Enable the Display result check box to display the output in the view when processing is complete.
-
To reuse these task settings in future ENVI sessions, save them to a file. Click the down arrow and select Save Parameter Values, then specify the location and filename to save to. Note that some parameter types, such as rasters, vectors, and ROIs, will not be saved with the file. To apply the saved task settings, click the down arrow and select Restore Parameter Values, then select the file where you previously stored your settings.
-
To run the process on a local or remote ENVI Server, click the down arrow and select Run Task in the Background or Run Task on remote ENVI Server name. The ENVI Server Job Console will show the progress of the job and will provide a link to display the result when processing is complete. See the ENVI Servers topic in ENVI Help for more information.
-
To see a model-based version of this tool that shows how the tool is constructed from individual tasks, click Open in Modeler.
-
Click OK.
See Also
ENVI Machine Learning Algorithms Background, TrainRandomForest Task, Extra Trees Classification Tool, K-Neighbors Classification Tool, Linear SVM Classification Tool, Naive Bayes Classification Tool, RBF SVM Classification Tool