Create classification dataset (from categorized vector layer with attribute table)ΒΆ

Create a classification dataset from attribute table rows that matches the given categories and store the result as a pickle file. If the layer is not categorized, or the field with class values is selected manually, categories are derived from the target data y. To be more precise: i) category values are derived from unique attribute values (after excluding no data or zero data values), ii) category names are set equal to the category values, and iii) category colors are picked randomly.

Parameters

Categorized vector layer [vector]
Categorized vector layer specifying feature data X and target data y.
Fields with features [field]
Fields with values used as feature data X.
Field with class values [field]
Field with class values used as target data y. If not selected, the field defined by the renderer is used. If that is also not specified, an error is raised.

Outputs

Output dataset [fileDestination]
Pickle file destination.

Command-line usage

>qgis_process help enmapbox:CreateClassificationDatasetFromCategorizedVectorLayerWithAttributeTable:

----------------
Arguments
----------------

categorizedVector: Categorized vector layer
    Argument type:  vector
    Acceptable values:
            - Path to a vector layer
featureFields: Fields with features
    Argument type:  field
    Acceptable values:
            - The name of an existing field
            - ; delimited list of existing field names
categoryField: Field with class values (optional)
    Argument type:  field
    Acceptable values:
            - The name of an existing field
            - ; delimited list of existing field names
outputClassificationDataset: Output dataset
    Argument type:  fileDestination
    Acceptable values:
            - Path for new file

----------------
Outputs
----------------

outputClassificationDataset: <outputFile>
    Output dataset