Prophet: Redundant Plot

Created on 22 Mar 2017  ·  2Comments  ·  Source: facebook/prophet

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

Most helpful comment

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);

All 2 comments

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);

Thanks so much. I Got it.

2017年3月23日 +0800 19:46 Ben Letham notifications@github.com,写道:
>

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);


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (https://github.com/facebookincubator/prophet/issues/124#issuecomment-288693888), or mute the thread (https://github.com/notifications/unsubscribe-auth/AHL0vOX_qB3_5lLsv8OoD29ee4mAX8Srks5rolt5gaJpZM4MkpUf).

Was this page helpful?
0 / 5 - 0 ratings