{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Polars OLS provides Rust-optimized linear regression models (OLS, WLS, Ridge, Elastic Net, non-negative least squares, recursive least squares) as Polars expressions, enabling efficient least-squares estimation within Polars workflows.","skillfed_tags":["polars-extension","linear-regression","rust-accelerated"],"use_cases":["Fit OLS or Ridge models within a Polars pipeline without leaving lazy evaluation or converting to NumPy","Compute per-group regression coefficients using `.group_by()` or `.over()` in parallel","Build weighted least-squares models with sample weights directly from a Polars column","Extract statistical summaries (R\u00b2, MAE, MSE, p-values) for OLS/WLS/Ridge models in one expression","Use patsy formula syntax (e.g., 'y ~ x1 + x2 + x1:x2') to specify models without manual feature engineering"],"what_it_does":"Polars OLS is a Rust-based extension that adds least-squares regression capabilities directly to Polars DataFrames. It implements common linear regression variants\u2014ordinary least squares, weighted least squares, Ridge, Elastic Net, non-negative least squares, and recursive least squares\u2014and exposes them as Polars expressions that integrate seamlessly into Polars' lazy evaluation and grouping workflows.\n\nInstead of converting data to NumPy or scikit-learn, you chain regression calls like any other Polars expression, supporting sample weighting, L1/L2 regularization, non-negativity constraints, and a patsy-style formula API. It can compute predictions, residuals, coefficients, or statistical summaries (for OLS/WLS/Ridge), and scales across groups via `.over()` or `.group_by()` with native Rust parallelism.","worth_installing":"Yes, if you are already using Polars and need to fit linear models without leaving the Polars ecosystem or converting to external libraries. No, if the package is dormant (last release 719 days ago, no visible recent commits) and you need active maintenance or bug fixes. Verify the license before use in proprietary projects."},"id":"polars-ols","links":{"html":"https://skillfed.io/packages/polars-ols","md":"https://skillfed.io/packages/polars-ols.md","pypi":"https://pypi.org/project/polars-ols/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-08-25","license_spdx":null,"license_treatment":"unclear","name":"polars-ols","python_support":"supports_current","summary":"Polars Least Squares Extension"},"popularity":{"monthly_downloads":102855,"position":12841,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.5"}
