gemseo.mlearning.linear_model_fitting.linear_regression_settings module#
Settings for the linear regression algorithm.
- Settings LinearRegression_Settings(*, fit_intercept=True, copy_X=True, n_jobs=None, positive=False, tol=1e-06)[source]#
Bases:
BaseLinearModelFitter_SettingsSettings for the scikit-learn linear regression 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_jobs: PositiveInt | None = None#
The number of jobs to use for the computation. This will only provide speedup in case of sufficiently large problems, that is if firstly n_targets > 1 and secondly X is sparse or if positive is set to True.
Nonemeans 1 unless in ajoblib.parallel_backendcontext. -1 means using all processors.
- positive: bool = False#
When set to
True, forces the coefficients to be positive. This option is only supported for dense arrays.
- tol: NonNegativeFloat = 1e-06#
The precision of the solution is determined by
tolwhich specifies a different convergence criterion for the lsqr solver.tolis set asatolandbtolofscipy.sparse.linalg.lsqrwhen fitting on sparse training data. This parameter has no effect when fitting on dense data.- Constraints:
ge = 0