Releases: cjekel/piecewise_linear_fit_py
Releases · cjekel/piecewise_linear_fit_py
v2.5.1
v2.5.0
[2.5.0] - 2025-02-19
Changed
- remove pyDOE as a dependency in favor of scipy's own latin hypercube sampling. This change will effect results of the
fitfast
method, where previous versions of thefitfast
results will no longer be reproducible with this version.
v2.4.0
[2.4.0] - 2024-12-31
Added
- Added support for mixing degree fits. You may now specify
degree=[0,1,0]
to fit a constant, then linear, then constant line. These are discontinuous piecewise linear. Currently this only supports mixing degrees of 0 and 1. Thanks to wonch002 for resurrecting an old branch.
Changed
- fixed a bug where
seed=0
would net get set. Thanks to filippobistaffa from #118 .
v2.3.0
[2.3.0] - 2024-10-26
Changed
- You can now force fits of one line segment to go through a particular point
mypwlf.fit(1, x_c, y_c)
. Thanks to fredrikhellman. - Update docs to sphinx 8 (from 4)
- Update ci version to
python==3.9
,python==3.10
,python==3.11
, andpython==3.12
v2.2.1
v2.2.0
v2.1.0
[2.1.0] - 2022-03-31
Changed
- All instances of
linalg.inv
now uselinalg.pinv
. All APIs are still the same, but this is potentially a backwards breaking change as previous results may be different from new results. This will mainly affect standard error calculations. - Previously
calc_slopes
was called after every least squares fit in optimization routines trying to find breakpoints. This would occasionally raise a numpyRuntimeWarning
if two breakpoints were the same, or if a breakpoint was on the boundary. Nowcalc_slopes
is not called during experimental breakpoint calculation, which should no longer raise this warning for most users. Slopes will still be calculated once optimal breakpoints are found!