Create regression dataset (from continuous-valued vector layer and feature raster)
Create a regression dataset by sampling data and store the result as a pickle file.
Usage:
Open the algorithm from the processing toolbox.
Select a continuous vector layer as well as a raster feature layer, e. g. your image, then click run.
The output classification dataset will be listed under Models in your Data Sources panel.
Parameters
- Continuous-valued vector layer [vector]
Continuous-valued vector layer specifying sample locations and target data y. If required, the layer is reprojected and rasterized internally to match the feature raster grid.
- Raster layer with features [raster]
Raster layer used for sampling feature data X.
- Exclude bad bands [boolean]
Whether to exclude bands, that are marked as bad bands, or contain no data, inf or nan values in all samples. Default: True
- Fields with targets [field]
Fields used as target data y. If not selected, the fields defined by the renderer are used. If those are also not specified, an error is raised.
Outputs
- Output dataset [fileDestination]
Pickle file destination.
Command-line usage
>qgis_process help enmapbox:CreateRegressionDatasetFromContinuousvaluedVectorLayerAndFeatureRaster
:
----------------
Arguments
----------------
continuousVector: Continuous-valued vector layer
Argument type: vector
Acceptable values:
- Path to a vector layer
featureRaster: Raster layer with features
Argument type: raster
Acceptable values:
- Path to a raster layer
excludeBadBands: Exclude bad bands (optional)
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
targetFields: Fields with targets (optional)
Argument type: field
Acceptable values:
- The name of an existing field
- ; delimited list of existing field names
outputRegressionDataset: Output dataset
Argument type: fileDestination
Acceptable values:
- Path for new file
----------------
Outputs
----------------
outputRegressionDataset: <outputFile>
Output dataset