RoPWR (Robust Piecewise Regression) is a Python library that implements robust piecewise regression using convex optimization techniques. It provides a flexible framework to model non-linear relationships with segments, supporting various solvers via CVXPY. The current version is 1.2.0, with releases occurring every few months, primarily driven by feature additions, improvements, and dependency updates.
pip install ropwrVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate, fit, and predict with the `RoPWR` model. It creates a simple dataset with two linear segments and fits a `RoPWR` model with two segments. The 'Clarabel' solver is specified, which is efficient for SOCP problems.
Upgrade ropwr to version 1.2.0 or higher. If unable to upgrade ropwr, downgrade scikit-learn to <1.6.
Upgrade ropwr to version 0.4.0 or higher. If using an older version, try specifying a different solver (e.g., `solver='Clarabel'` or `solver='SCS'`) or use `solver='auto'`.
Upgrade ropwr to version 1.0.0 or higher to utilize the `max_iter` parameter.
Ensure ropwr is version 1.0.0 or higher if your application requires these features. Refer to the documentation for how to enable continuous derivatives or specific extrapolation methods.