Recent Releases of pwlf

pwlf - v2.5.2

[2.5.2] - 2025-07-26

Changed

  • Minor typo in documentation. Thanks to Berend-ASML for the fix!

- Python
Published by cjekel 7 months ago

pwlf - v2.5.1

[2.5.1] - 2025-02-23

Changed

  • Only test float128 support if numpy allows you to create float128 numbers. This should fix issues on aarch64 builds that do not support float128 or longdouble.

- Python
Published by cjekel 12 months ago

pwlf - 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 the fitfast results will no longer be reproducible with this version.

- Python
Published by cjekel about 1 year ago

pwlf - 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 https://github.com/cjekel/piecewiselinearfit_py/pull/118 .

- Python
Published by cjekel about 1 year ago

pwlf - 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, and python==3.12

- Python
Published by cjekel over 1 year ago

pwlf - v2.2.1

You can now perform fit and fitfast for one line segment! Both routines do the same linear regression in this case.

- Python
Published by cjekel almost 4 years ago

pwlf - v2.2.0

You can now manually specify a random seed on init. This will give you reproducible results with the fit and fitfast methods which are stochastic.

python pwlf.PiecewiseLinFit(x, y, seed=123)

- Python
Published by cjekel almost 4 years ago

pwlf - v2.1.0

[2.1.0] - 2022-03-31

Changed

  • All instances of linalg.inv now use linalg.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 numpy RuntimeWarning if two breakpoints were the same, or if a breakpoint was on the boundary. Now calc_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!

- Python
Published by cjekel almost 4 years ago

pwlf - v2.0.5

conda force installs are now officially mentioned on readme and in documentation

- Python
Published by cjekel about 4 years ago

pwlf - v2.0.4

This is version 2.0.4 of pwlf. It will be the last version to support Python<3.6.

- Python
Published by cjekel over 5 years ago