gemseo.mlearning.linear_model_fitting.omp_cv_settings module#
Settings for the scikit-learn Orthogonal Matching Pursuit (OMP) algorithm with build-in cross-validation.
- Settings OrthogonalMatchingPursuitCV_Settings(*, fit_intercept=True, max_iter=None, cv=None, verbose=False)[source]#
Bases:
BaseLinearModelFitter_SettingsSettings for the scikit-learn Orthogonal Matching Pursuit (OMP) algorithm with build-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:
- Return type:
None
- cv: int | None = None#
The number of folds. If
None, use the efficient Leave-One-Out cross-validation.