Skip to content
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

add future days forecast for the fitted lines #97

Open
GXY2017 opened this issue Oct 10, 2023 · 1 comment
Open

add future days forecast for the fitted lines #97

GXY2017 opened this issue Oct 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@GXY2017
Copy link

GXY2017 commented Oct 10, 2023

I tried to extend the fitted line into future days.
It would be useful to update the lppls_model.plot_fit() function.

#  extend
new_dates = pd.date_range(start=data.index[-1] + pd.Timedelta(days=1), periods=500)
t = [pd.Timestamp.toordinal(timestamp) for timestamp in new_dates]
y = a + np.power(tc - t, m) * (b + ((c1 * np.cos(w * np.log(tc - t))) + (c2 * np.sin(w * np.log(tc - t)))))

plt.plot(new_dates, y)
plt.show()

image

@Joshwani Joshwani added the enhancement New feature or request label Apr 28, 2024
@Joshwani
Copy link
Contributor

yes, this would be very nice to have indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants