Mini Batch K-Means Classification Tool
ENVI Machine Learning Unsupervised Classification Tutorial
The Mini Batch K-Means Classification tool runs an unsupervised mini batch K-Means algorithm against the provided input training rasters. The algorithm iterates between two major steps, first step, samples are drawn randomly from the dataset, to form a mini-batch. These are then assigned to the nearest centroid. In the second step, the centroids are updated.
This tool performs unsupervised classification on a single raster. You provide an input raster and parameter settings to generate a classified raster. For more advanced options, you can use the Train Mini Batch K-Means Tool to create a training model using one or more rasters, then 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 Mini Batch K-Means Classification.
- From the Toolbox, select Machine Learning > Unsupervised > Mini Batch K-Means Classification. The Mini Batch K-Means Classification dialog appears.
- Click the Browse button
next to the Input Raster field. In the Data Selection dialog that appears, select the input raster, perform optional spatial and spectral subsetting and/or masking, then click OK.
- Enter the Number of Classes to identify.
- In the Output Raster field, enter a location and filename for the classification raster.
- In the Output Model field, enter a location and filename for the model.
- 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.
-
You can run the process in the background on your computer or in the background on an ENVI Server (if available). Click the down arrow
next to the OK button and select one of the following:
- Run Task in the Background: Runs the process on your computer. This method does not use an ENVI Server. The job progress will show in the ENVI Job Console's Background Jobs tab.
- Run Task on envi_server_name. Runs the process on the selected ENVI Server. The job progress will show in the ENVI Job Console's envi_server_name tab.
In ENVI Help, see ENVI Job Console for details on monitoring ENVI Server jobs and viewing results, and see ENVI Servers for details on setting up an ENVI Server.
-
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, Train Mini Batch K-Means Tool, TrainMiniBatchKMeans Task, BIRCH Classification Tool