Create regression dataset (from text files)

Create a regression dataset from tabulated text files and store the result as a pickle file. The format matches that of the FORCE Higher Level Sampling Submodule. Example files (classification_dataset_force_features.csv and classification_dataset_force_labels.csv) can be found in the EnMAP-Box testdata folder).

Usage:

  1. Open the algorithm from the processing toolbox.

  2. Select the files containing your dependent and independent variables, then click run.

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

Parameters

File with features [file]

Text file with tabulated feature data X (no headers). Each row represents the feature vector of a sample.

File with target values [file]

Text file with tabulated target data y (no headers). Each row represents the target values of a sample.

Outputs

Output dataset [fileDestination]

Pickle file destination.

Command-line usage

>qgis_process help enmapbox:CreateRegressionDatasetFromTextFiles:

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

featureFile: File with features
    Argument type:  file
    Acceptable values:
            - Path to a file
valueFile: File with target values
    Argument type:  file
    Acceptable values:
            - Path to a file
outputRegressionDataset: Output dataset
    Argument type:  fileDestination
    Acceptable values:
            - Path for new file

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

outputRegressionDataset: <outputFile>
    Output dataset