3.1.3 - 2025-02-18
Bug fixes:
- Fixed
deviance_path_in :class:~glum.GeneralizedLinearRegressorCVbeing scaled down by a factor ofn_foldsbecause test fold weights were not normalized to sum to 1. - Fixed :class:
~glum.NegativeBinomialDistributionthetasetter rejectingnp.numbertypes, causingdist.theta = dist.thetato raise aTypeError.
Other changes:
- We disabled fast math to avoid invalid results (e.g., when dividing by zero).
- The default
alpha_maxfor the regularization path in the pure ridge case (l1_ratio=0) is now computed from the null model gradient, matching glmnet's behavior. Previously it was hardcoded to 10. - When
min_alpha_ratiois not set andn_samples < n_features, the default is now1e-2instead of1e-6, matching glmnet's convention.
Full Changelog: 3.1.2...3.1.3