Skip to content

Commit

Permalink
Use all components in regression as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Ddelval committed Nov 1, 2023
1 parent ab7f91c commit e7c79af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skfda/ml/regression/_fpls_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand Down

0 comments on commit e7c79af

Please sign in to comment.