Repository navigation
v0.8.0
Adds Gaussian ridge regression and weighted cross-validation:
fit_ridge()returnsRidgeFitwith glmnet alpha=0 scaling, predictor penalty factors, standardization, original-scale coefficient bounds, and conditional uncertainty.cv_ridge()accepts explicit lambda paths and input-row fold labels, combines fold IDs with observation weights, selectslambda_min/lambda_1se, and returns the full-data fit atlambda_min.- Twelve fit and six CV fixtures validate against glmnet, MASS, lmridge, and independent matrix calculations, including day folds and age-decaying weights over hourly heating rows.
- Conditional ridge intervals hold lambda and active bounds fixed, ignore shrinkage bias and selection, and are not coverage-valid. At-bound uncertainty is null.
The default lambda path is phit policy. Explicit lambda follows Gaussian glmnet's internal response scaling; see the model guide and clean-room specification.
Validation: scripts/check passed on PHP 8.4 NTS. Saved numerical results and ridge-only benchmarks for both native phit and the polyfill are included. Reference packages were used only through public documentation and output APIs; no GPL source was consulted.
Model guide · Validation · Benchmarks
Prebuilt Linux x86_64 and arm64 NTS extensions, named for PIE's prebuilt-binary download, for PHP 8.3, 8.4 and 8.5 on Debian Bookworm, with the source archive. Each binary archive carries its own manifest.json recording the exact ABI it was built and tested against.