diff --git a/docs/adapters.prophet.html b/docs/adapters.prophet.html deleted file mode 100644 index d8f7ca684..000000000 --- a/docs/adapters.prophet.html +++ /dev/null @@ -1,519 +0,0 @@ ---- - -title: Adapters for Prophet - - -keywords: fastai -sidebar: home_sidebar - - - -nb_path: "nbs/adapters.prophet.ipynb" ---- - - -
import pandas as pd
-df = pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')
-
m = AutoARIMAProphet()
-
%%capture
-m.fit(df)
-
future = m.make_future_dataframe(365)
-
forecast = m.predict(future)
-
fig = m.plot(forecast)
-
in_sample = m.predict()
-
fig_in = m.plot(in_sample)
-
playoffs = pd.DataFrame({
- 'holiday': 'playoff',
- 'ds': pd.to_datetime(['2008-01-13', '2009-01-03', '2010-01-16',
- '2010-01-24', '2010-02-07', '2011-01-08',
- '2013-01-12', '2014-01-12', '2014-01-19',
- '2014-02-02', '2015-01-11', '2016-01-17',
- '2016-01-24', '2016-02-07']),
- 'lower_window': 0,
- 'upper_window': 1,
-})
-superbowls = pd.DataFrame({
- 'holiday': 'superbowl',
- 'ds': pd.to_datetime(['2010-02-07', '2014-02-02', '2016-02-07']),
- 'lower_window': 0,
- 'upper_window': 1,
-})
-holidays = pd.concat((playoffs, superbowls))
-
m = AutoARIMAProphet(holidays=holidays)
-
m.add_country_holidays(country_name='US')
-
%%capture
-m.fit(df)
-
future = m.make_future_dataframe(365)
-
forecast = m.predict(future)
-
fig = m.plot(forecast)
-