gemseo.mlearning.linear_model_fitting.omp_settings module#
Settings for the scikit-learn Orthogonal Matching Pursuit (OMP) algorithm.
- Settings OrthogonalMatchingPursuit_Settings(*, fit_intercept=True, n_nonzero_coefs=None, precompute='auto', tol=1e-07)[source]#
Bases:
BaseLinearModelFitter_SettingsSettings for the scikit-learn Orthogonal Matching Pursuit (OMP) algorithm.
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
- n_nonzero_coefs: PositiveInt | None = None#
The desired number of non-zero coefficients. Ignored if
tolis set. WhenNoneandtolis alsoNone, this value is either set to 10% of the input dimension or 1, whichever is greater.
- precompute: bool | Literal['auto'] = 'auto'#
Whether to use a precomputed Gram and Xy matrix to speed up calculations. Improves performance when the output dimension or the number of samples is very large.
- tol: PositiveFloat = 1e-07#
The maximum squared norm of the residual normalized by the infinite norm of the output data.
- Constraints:
gt = 0