Charles Jekel
Charles Jekel
I don't have a lot of intuition on how the polynomial roots are being used, and I'm still a bit confused here. Can you do some debugging steps, and show...
I just wanted to reach out and say I have not forgot about this. Getting this in is something that I think will improve this library! I have just been...
There is an undocumented hack you can do, where you can specify `.beta` and `.fit_breaks` after initialization. If follows equation 4 in the paper:  but this is only for...
I think there are two ways to approach this. 1. Add a penalty parameter to the objective function. See [1] for a reasonable penalty formulation. 2. Use a constrained optimization...
> The question is why betwenn first two breaks (the 2nd pic) I don't have any signal's points? Is it correct or I do it the wrong way? It's probably...
If you are curious as to why there is a pwlf breakpoint here:  but without a slope change, it's because of how you calculate the first and last line...
Might need to use a different optimization algorithm for this. GA or EGO work well with integers, but this may actually not be faster optimizations. The advantage in your case...
The code in https://github.com/cjekel/piecewise_linear_fit_py/blob/expga/examples/compare_fitfast_and_ga.py is using the incorrect objective function. It should be ```my_pwlf.fit_with_breaks_opt``` in line 30. You could then use something like the following example to populate the ```my_pwlf```...
Okay. There are a couple ways to use your GA implementation. So the ```_opt``` objective function (and throughout my other code) I assume the first and last breakpoints at ```x.min()```...
Also, here is the documentation on the GA scheme: https://deap.readthedocs.io/en/master/api/algo.html#deap.algorithms.eaMuPlusLambda