sperm.linear_model.Ridge#

class sperm.linear_model.Ridge(*, alpha=1.0, fit_intercept=True, copy_X=True, tol=1e-6, priors=None)[source]#

L2-regularized linear regression with coefficient shape priors.

Parameters:
  • alpha (float, default=1.0) – Non-negative L2 regularization strength.

  • fit_intercept (bool, default=True) – Whether to fit an intercept. The intercept is not regularized.

  • copy_X (bool, default=True) – Whether input validation may copy X.

  • tol (float, default=1e-6) – Convergence tolerance passed to scipy.optimize.lsq_linear.

  • priors (Priors or mapping, default=None) – Per-feature slope priors. A mapping is accepted as shorthand. ValueBound is not supported by this base model.