gemseo.mlearning.linear_model_fitting.lasso_cv_settings module#
Settings for the scikit-learn lasso algorithm with built-in cross-validation.
- Settings LassoCV_Settings(*, fit_intercept=True, copy_X=True, max_iter=1000, positive=False, precompute=False, random_state=None, selection='cyclic', tol=0.0001, alphas=(0.001, 0.01, 0.1, 1.0, 10.0), cv=None)[source]#
Bases:
_LassoSettingsMixin,BaseLinearModelFitter_SettingsSettings for the scikit-learn lasso algorithm with built-in cross-validation.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
fit_intercept (bool) --
By default it is set to True.
copy_X (bool) --
By default it is set to True.
max_iter (Annotated[int, Gt(gt=0)]) --
By default it is set to 1000.
positive (bool) --
By default it is set to False.
precompute (bool | ndarray) --
By default it is set to False.
random_state (int | RandomState | None)
selection (Literal['cyclic', 'random']) --
By default it is set to "cyclic".
tol (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0001.
alphas (tuple[Annotated[float, Ge(ge=0)], ...]) --
By default it is set to (0.001, 0.01, 0.1, 1.0, 10.0).
cv (int | None)
- Return type:
None