pwlf: Piecewise Linear Fitting
JSON →pwlf is a Python library (v2.5.2) for fitting continuous piecewise linear functions to 1D data. It allows users to specify the number of line segments and uses global optimization (like differential evolution or L-BFGS-B) to find optimal breakpoint locations. The library also supports fitting with known breakpoints, constrained fits, and provides statistical properties like standard errors and R-squared values. It is actively maintained with regular releases.
Traffic · last 30 days ↑367% vs prev 7d
total hits 22
actors 8 distinct systems
last hit 17h ago ByteDance
top countries 🇺🇸 United States · 🇫🇷 France · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany
Resources
packagepypi.org/project/pwlf/ ↗
API endpoints
full doc /v1/registry/pwlf
install /v1/registry/pwlf/install
compatibility /v1/registry/pwlf/compatibility