@@ -38,7 +38,7 @@ def test_trend(verbose=True):
38
38
verbose = verbose ,
39
39
)
40
40
m .fit (df )
41
- future = m .compose_prediction_df (df , future_periods = 60 , n_historic_predictions = len (df ))
41
+ future = m .make_future_dataframe (df , future_periods = 60 , n_historic_predictions = len (df ))
42
42
forecast = m .predict (df = future )
43
43
if verbose :
44
44
m .plot (forecast )
@@ -63,7 +63,7 @@ def test_ar_net(verbose=True):
63
63
)
64
64
m .highlight_nth_step_ahead_of_each_forecast (m .n_forecasts )
65
65
m .fit (df , validate_each_epoch = True )
66
- future = m .compose_prediction_df (df , n_historic_predictions = len (df ))
66
+ future = m .make_future_dataframe (df , n_historic_predictions = len (df ))
67
67
forecast = m .predict (df = future )
68
68
if verbose :
69
69
m .plot_last_forecast (forecast , include_previous_forecasts = 3 )
@@ -90,7 +90,7 @@ def test_seasons(verbose=True):
90
90
# seasonality_reg=10,
91
91
)
92
92
m .fit (df , validate_each_epoch = True )
93
- future = m .compose_prediction_df (df , n_historic_predictions = len (df ), future_periods = 365 )
93
+ future = m .make_future_dataframe (df , n_historic_predictions = len (df ), future_periods = 365 )
94
94
forecast = m .predict (df = future )
95
95
96
96
if verbose :
@@ -125,7 +125,7 @@ def test_lag_reg(verbose=True):
125
125
m = m .add_regressor (name = 'C' )
126
126
# m.highlight_nth_step_ahead_of_each_forecast(m.n_forecasts)
127
127
m .fit (df , validate_each_epoch = True )
128
- future = m .compose_prediction_df (df , n_historic_predictions = 365 )
128
+ future = m .make_future_dataframe (df , n_historic_predictions = 365 )
129
129
forecast = m .predict (future )
130
130
131
131
if verbose :
@@ -172,7 +172,7 @@ def test_events(verbose=True):
172
172
173
173
# create the test data
174
174
history_df = m .create_df_with_events (df .iloc [100 : 500 , :].reset_index (drop = True ), events_df )
175
- future = m .compose_prediction_df (df = history_df , events_df = events_df , future_periods = 20 , n_historic_predictions = 3 )
175
+ future = m .make_future_dataframe (df = history_df , events_df = events_df , future_periods = 20 , n_historic_predictions = 3 )
176
176
forecast = m .predict (df = future )
177
177
if verbose :
178
178
print (m .model .event_params )
@@ -193,7 +193,7 @@ def test_predict(verbose=True):
193
193
daily_seasonality = False ,
194
194
)
195
195
m .fit (df )
196
- future = m .compose_prediction_df (df , future_periods = None , n_historic_predictions = 10 )
196
+ future = m .make_future_dataframe (df , future_periods = None , n_historic_predictions = 10 )
197
197
forecast = m .predict (future )
198
198
if verbose :
199
199
m .plot_last_forecast (forecast , include_previous_forecasts = 10 )
@@ -215,7 +215,7 @@ def test_plot(verbose=True):
215
215
)
216
216
m .fit (df )
217
217
m .highlight_nth_step_ahead_of_each_forecast (7 )
218
- future = m .compose_prediction_df (df , n_historic_predictions = 10 )
218
+ future = m .make_future_dataframe (df , n_historic_predictions = 10 )
219
219
forecast = m .predict (future )
220
220
# print(future.to_string())
221
221
# print(forecast.to_string())
0 commit comments