Create regression dataset (SynthMix from classification dataset)¶
Create synthetically mixed regression datasets, one for each category. Results are stored as <category.name>.pkl files inside the destination folder.
Parameters
- Classification dataset [file]
- A classification dataset with spectral endmembers used for synthetical mixing.
- Number of mixtures per class [number]
Number of mixtures per class
Default: 1000
- Proportion of background mixtures (%) [number]
Proportion of background mixtures.
Default: 0
- Include original endmembers [boolean]
Whether to include the original library spectra into the dataset.
Default: True
- Mixing complexity probabilities [string]
A list of probabilities for using 2, 3, 4, … endmember mixing models. Trailing 0 probabilities can be skipped. The default values of 0.5, 0.5,results in 50% 2-endmember and 50% 3-endmember models.
Default: 0.5, 0.5
- Allow within-class mixtures [boolean]
Whether to allow mixtures with profiles belonging to the same class.
Default: True
- Class probabilities [string]
- A list of probabilities for drawing profiles from each class. If not specified, class probabilities are proportional to the class size.
Outputs
- Output folder [folderDestination]
- Folder destination.
Command-line usage
>qgis_process help enmapbox:CreateRegressionDatasetSynthmixFromClassificationDataset
:
----------------
Arguments
----------------
dataset: Classification dataset
Argument type: file
Acceptable values:
- Path to a file
n: Number of mixtures per class
Default value: 1000
Argument type: number
Acceptable values:
- A numeric value
background: Proportion of background mixtures (%)
Default value: 0
Argument type: number
Acceptable values:
- A numeric value
includeEndmember: Include original endmembers
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
mixingProbabilities: Mixing complexity probabilities (optional)
Default value: 0.5, 0.5
Argument type: string
Acceptable values:
- String value
allowWithinClassMixtures: Allow within-class mixtures
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
classProbabilities: Class probabilities (optional)
Argument type: string
Acceptable values:
- String value
outputFolder: Output folder
Argument type: folderDestination
Acceptable values:
- Path for an existing or new folder
----------------
Outputs
----------------
outputFolder: <outputFolder>
Output folder