Create unsupervised dataset (from Python code)ΒΆ
Create an unsupervised dataset from Python code and store the result as a pickle file.
Parameters
- Code [string]
Python code specifying the unsupervised dataset.
Default:
from enmapboxprocessing.typing import Number, List # specify feature names features: List[str] = ['Feature 1', 'Feature 2', 'Feature 3'] # specify features X as 2d-array with shape (samples, features) X: List[List[Number]] = [ [1, 2, 3], [4, 5, 6] ]
Outputs
- Output dataset [fileDestination]
- Pickle file destination.
Command-line usage
>qgis_process help enmapbox:CreateUnsupervisedDatasetFromPythonCode
:
----------------
Arguments
----------------
code: Code
Default value: from enmapboxprocessing.typing import Number, List
# specify feature names
features: List[str] = ['Feature 1', 'Feature 2', 'Feature 3']
# specify features X as 2d-array with shape (samples, features)
X: List[List[Number]] = [
[1, 2, 3],
[4, 5, 6]
]
Argument type: string
Acceptable values:
- String value
outputUnsupervisedDataset: Output dataset
Argument type: fileDestination
Acceptable values:
- Path for new file
----------------
Outputs
----------------
outputUnsupervisedDataset: <outputFile>
Output dataset