Charles Jekel
Charles Jekel
@Fannxy Can you describe how you'd like to use multivariate fits from 1d piecewise linear fits? Would it follow a general additive model like I talk about here https://github.com/cjekel/piecewise_linear_fit_py/issues/8 Do...
I think this code would work if you wanted to give a spin what I tired in the past. ```python # -- coding: utf-8 -- # MIT License # #...
So for monotonic fits, I've typically referred to pwlfit I don't have a clean way to do this in my routine, since I normally rely on least squares fits. However,...
@fredrikhellman Thanks for this addition! Can you also add a small unit test for this? (1 segment w/ and w/o forcing points)
Thank you! I'm tracking to try to get this in a new release this weekend! LGTM.
How many line segments are those fits? You should be able to run fit fast with a pop=1. If it doesn't work, it's basically like running fit_guess where you pick...
With that many data points and two segments, I would want to do one of the optimizations that you've done. Thanks for sharing the timings. It's honestly a bit faster...