You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then I calculated and saved all 15 slopes values in the file. Now, I want to load x, y and slopes, and get y_out, can I get this or must calculate fitfast again?
Also I have saved duration of each slope.
The text was updated successfully, but these errors were encountered:
These models don't really work with slopes, they work on model parameters (beta) and breakpoints. The difference between model parameters and slopes is how I formulate the piecewise problem. Take a look at #13 (comment) which save the beta and breakpoint values from a fitted model. After doing that predict call, it repopulates all the model parameters, and you can get the slopes from it.
I did something like this:
x,y = read_from_file()
my_pwlf = pwlf.PiecewiseLinFit(x, y)
my_pwlf.fitfast(breaks_num=15, pop=500)
x_out = np.linspace(min(x), max(x), num=10000)
y_out = my_pwlf.predict(x_out)
And then I calculated and saved all 15 slopes values in the file. Now, I want to load x, y and slopes, and get y_out, can I get this or must calculate fitfast again?
Also I have saved duration of each slope.
The text was updated successfully, but these errors were encountered: