shrinkage.ProximalFit
Shrinkage for Python · python · 0.2.0
Owned original-scale parameters and full original-loss diagnostics.
Inspect termination before treating the result as converged. Arrays are independent snapshots, and the result retains no training data. The objective, mapping, and dual diagnostics use optimization-scale penalties.
solver
Source: packages/python/src/shrinkage/fit.py
-> Explicitly selected numerical method.
family
Source: packages/python/src/shrinkage/fit.py
-> "gaussian" or "binomial"; binomial predictions are logits.
coefficients
Source: packages/python/src/shrinkage/fit.py
-> Original-scale coefficients, shape (n_features,).
intercept
Source: packages/python/src/shrinkage/fit.py
-> Original-scale intercept, including the centering correction.
preprocessing
Source: packages/python/src/shrinkage/fit.py
-> Training transformations; prediction never estimates new ones.
termination
Source: packages/python/src/shrinkage/fit.py
-> Whether the full mapping passed or an iteration budget expired.
iterations
Source: packages/python/src/shrinkage/fit.py
-> Accepted PG updates, or hybrid PG transitions plus block sweeps.
objective
Source: packages/python/src/shrinkage/fit.py
-> Original averaged loss plus the complete optimization-scale penalty.
stopping
Source: packages/python/src/shrinkage/fit.py
-> Resolved full-space proximal-gradient mapping criterion.
stopping_value
Source: packages/python/src/shrinkage/fit.py
-> Full mapping infinity norm, including the free-intercept derivative.
stopping_threshold
Source: packages/python/src/shrinkage/fit.py
-> Absolute mapping tolerance used to certify convergence.
step_size
Source: packages/python/src/shrinkage/fit.py
-> Step used to evaluate the final full original-loss mapping.
dual_certificate
Source: packages/python/src/shrinkage/fit.py
-> | NoneFeasible original-loss dual vector, shape (n_samples,), if available.
dual_objective
Source: packages/python/src/shrinkage/fit.py
-> | NoneOriginal-problem dual lower bound, or None without screening.
duality_gap
Source: packages/python/src/shrinkage/fit.py
-> | NonePadded original-problem gap; the full mapping controls convergence.
screening_diagnostics
Source: packages/python/src/shrinkage/fit.py
-> Certified restrictions and work in the original feature space.
predict
Source: packages/python/src/shrinkage/fit.py
-> Predict means or logits, returning float64 shape (n_samples,).
Binomial predictions are logits, not probabilities or class labels. Input rules match fitting, except zero rows are allowed. Inputs are copied before releasing the GIL and must remain unchanged until return. Prediction uses original-scale coefficients without refitting any preprocessing. copy=False is unsupported.
