lpspline.penalties.smooth.Ridge# class lpspline.penalties.smooth.Ridge(alpha: float = 1.0)[source]# Bases: Penalty L2 Ridge Regularization targeting coefficient smoothness. property alpha: float# Returns the scaling severity. Returns: Penalty tuning constant. Return type: float build_penalty(s: Spline) → list[source]# Creates a Ridge penalty: $alpha * sum v^2$. Parameters: s (Spline) – The targeted function modeling bounds. Returns: Returns a list of CVXPY expressions to be mathematically subtracted/added into the objective solver metric. Return type: list