Create classification dataset (from table with categories and feature fields)

Create a classification dataset from attribute table rows that match the given categories and store the result as a pickle file.

Usage:

  1. Open the algorithm from the processing toolbox.

  2. Select a table containing your classes as well as the fields containing features and labels, then click run.

    ../../../../_images/classtable.png
  3. The output classification dataset will be listed under Models in your Data Sources panel.

Parameters

Table [vector]

Table with feature data X and target data y.

Fields with features [field]

Fields used as features. Values may be given as strings, but must be castable to float.

Field with class values [field]

Field used as class value.

Field with class names [field]

Field used as class name. If not specified, class values are used as class names.

Field with class colors [field]

Field used as class color. Values may be given as hex-colors, rgb-colors or int-colors.

Outputs

Output dataset [fileDestination]

Pickle file destination.

Command-line usage

>qgis_process help enmapbox:CreateClassificationDatasetFromTableWithCategoriesAndFeatureFields:

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

table: Table
    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
valueField: Field with class values
    Argument type:  field
    Acceptable values:
            - The name of an existing field
            - ; delimited list of existing field names
nameField: Field with class names (optional)
    Argument type:  field
    Acceptable values:
            - The name of an existing field
            - ; delimited list of existing field names
colorField: Field with class colors (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