From e7c79afb80410780f147cdf16b3c8fddd3e5be15 Mon Sep 17 00:00:00 2001 From: David del Val Date: Wed, 1 Nov 2023 23:17:35 +0100 Subject: [PATCH] Use all components in regression as well --- skfda/ml/regression/_fpls_regression.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skfda/ml/regression/_fpls_regression.py b/skfda/ml/regression/_fpls_regression.py index 6299df194..ea4dd4eac 100644 --- a/skfda/ml/regression/_fpls_regression.py +++ b/skfda/ml/regression/_fpls_regression.py @@ -30,7 +30,8 @@ class FPLSRegression( Regression using Functional Partial Least Squares. Parameters: - n_components: Number of components to keep. Defaults to 5. + n_components: Number of components to keep. + By default all available components are utilized. regularization_X: Regularization for the calculation of the X weights. weight_basis_X: Basis to use for the X block. Only applicable if X is a FDataBasis. Otherwise it must be None. @@ -57,7 +58,7 @@ class FPLSRegression( def __init__( self, - n_components: int = 2, + n_components: int | None = None, regularization_X: L2Regularization[Any] | None = None, weight_basis_X: Basis | None = None, weight_basis_Y: Basis | None = None,