-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to plot segments with fit_breaks information #96
Comments
It's probably a bad local minima. You can try seeing if you increase the initial population if you get the same result. my_pwlf.fitfast(breaks_num, pop=200) Your intuition is correct though, you would expect a line to at minimum connect two data points. Is it possible that your What are the red breakpoints in your plot? A known solution? You don't need to specify my_pwlf = pwlf.PiecewiseLinFit(x_in, y_in)
my_pwlf.fitfast(breaks_num, pop=50)
y_out = my_pwlf.predict(x_in) |
@cjekel What are the red breakpoints in your plot? A known solution? I mentioned that if I predict on |
@cjekel it's clear now why there's the breakpoint where no points. thank you very much! |
Hello. Thank you for your awesome library! I have a question about how to plot segments with fit_breaks.
I have the signal [x_in; y_in] (the 1st pic) and then use
then I compute segments lines like this:
where get_y_lines is:
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?
the first picture:
the second picture
The text was updated successfully, but these errors were encountered: