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

Redundant Plot #124

Closed
evanzhu2013 opened this issue Mar 22, 2017 · 3 comments
Closed

Redundant Plot #124

evanzhu2013 opened this issue Mar 22, 2017 · 3 comments

Comments

@evanzhu2013
Copy link

Redundant Plot

df.columns = ['ds','y']
m = Prophet()
m.fit(df)
future = m.make_future_dataframe(periods=12, freq='M')
fcst = m.predict(future)
fcst.loc[109:,'yhat']
m.plot(fcst)

2017-03-22 10 17 07

@bletham
Copy link
Contributor

bletham commented Mar 23, 2017

This is a Jupyter notebook thing. Jupyter automatically plots anything generated by matplotlib, but then also displays the output of the last line in the block, which in this case is the plot again.

You can stop this by putting a semicolon after the plot command:

m.plot(fcst);

@evanzhu2013
Copy link
Author

evanzhu2013 commented Mar 23, 2017 via email

@bletham bletham closed this as completed Mar 24, 2017
@SehyunPark
Copy link

model.plot_components(forecast);
this solved.

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

No branches or pull requests

3 participants