.. ## AUTOGENERATED TITLE START .. _alg-enmapbox-fitplsregression: ***************** Fit PLSRegression ***************** .. ## AUTOGENERATED TITLE END .. ## AUTOGENERATED DESCRIPTION START Partial Least Squares `regression `_. .. ## AUTOGENERATED DESCRIPTION END Partial Least Squares (PLS) regression is a statistical technique used for modeling the relationship between a set of independent variables (features or predictors) and a dependent variable (target) when there is multicollinearity and when there are more predictors than observations. PLS combines elements of principal component analysis and multiple linear regression to find a linear relationship between the variables while reducing the dimensionality of the predictor space. Usage: 1. Start the algorithm from the Processing Toolbox panel. 2. Select a training dataset or create one by clicking the processing algorithm icon, then click :guilabel:`run`. .. figure:: ../../processing_algorithms/regression/img/pls.png :align: center .. ## AUTOGENERATED PARAMETERS START **Parameters** :guilabel:`Regressor` [string] Scikit-learn python code. See `PLSRegression `_ for information on different parameters. Default:: from sklearn.cross_decomposition import PLSRegression regressor = PLSRegression\(n_components=2\) :guilabel:`Training dataset` [file] `Training dataset `_ `pickle file `_ used for fitting the `classifier `_. If not specified, an unfitted classifier is created. **Outputs** :guilabel:`Output regressor` [fileDestination] `Pickle file `_ destination. .. ## AUTOGENERATED PARAMETERS END .. ## AUTOGENERATED COMMAND USAGE START **Command-line usage** ``>qgis_process help enmapbox:fitplsregression``:: ---------------- Arguments ---------------- regressor: Regressor Default value: from sklearn.cross_decomposition import PLSRegression regressor = PLSRegression(n_components=2) Argument type: string Acceptable values: - String value - field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field - expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression dataset: Training dataset (optional) Argument type: file Acceptable values: - Path to a file outputRegressor: Output regressor Argument type: fileDestination Acceptable values: - Path for new file ---------------- Outputs ---------------- outputRegressor: Output regressor .. ## AUTOGENERATED COMMAND USAGE END