Closed TobI-SE closed 4 years ago
Thanks Tobi. I guess I missed this test case when I've implemented this, and I think is a higher priority on my todo list since this is intended to work.
However, It's probably a week until I can look at this in detail.
Any help until then as to why this isn't working as intended is appreciated.
Hi @TobI-SE
Thank you for the issue, and easy to reproduce code. I believe I've fixed the issue, and I have added your code as a test case. Do you mind checking this PR to see if it indeeds solves your issue? https://github.com/cjekel/piecewise_linear_fit_py/pull/56
Thanks, CJ
I think this fixed the issue, but I'll leave this open for now. At the moment I'm going to release a new pwlf version which includes these changes.
Hi cjekel, sorry for the late response. It all works perfectly, thank you.
Thanks for making me aware of the issue and giving me a basic example to work with!
Hi, I am trying to force a fit through a point using the pwlf library. If I force the fit through a certain data point with a degree=1 everything works perfectly, but as soon as I set the degree=2 the following error comes up:
ValueError: could not broadcast input array from shape (5,1) into shape (11,1)
This is the code I used: