Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWittner committed Mar 14, 2024
1 parent 91880ba commit 9dbd267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neuralprophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2113,13 +2113,13 @@ def get_latest_forecast(
--------
We may get the df of the latest forecast:
>>> forecast = m.predict(df)
>>> df_forecast = m.get_latest_forecast(forecast)
>>> df_forecast = m.get_latest_forecasts(forecast)
Number of steps before latest forecast could be included:
>>> df_forecast = m.get_latest_forecast(forecast, include_previous_forecast=3)
>>> df_forecast = m.get_latest_forecasts(forecast, include_previous_forecast=3)
Historical data could be included, however be aware that the df could be large:
>>> df_forecast = m.get_latest_forecast(forecast, include_history_data=True)
>>> df_forecast = m.get_latest_forecasts(forecast, include_history_data=True)
"""
if self.max_lags == 0:
raise ValueError("Use the standard plot function for models without lags.")
Expand Down

0 comments on commit 9dbd267

Please sign in to comment.