Skip to content

Commit

Permalink
Merge branch 'master' into add_rmse_metric
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-hse-repository authored Dec 26, 2022
2 parents 30a7231 + 92e1ba4 commit 61ed089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etna/models/deadline_ma.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def forecast(self, df: pd.DataFrame, prediction_size: int) -> np.ndarray:
history = df_history["target"]
history = history[history.index >= context_beginning]
if np.any(history.isnull()):
raise ValueError("There are NaNs in a forecast context, forecast method required context to filled!")
raise ValueError("There are NaNs in a forecast context, forecast method requires context to be filled!")

index = pd.date_range(start=context_beginning, end=df.index[-1], freq=self._freq)
result_template = np.append(history.values, np.zeros(prediction_size))
Expand Down
2 changes: 1 addition & 1 deletion etna/models/seasonal_ma.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def forecast(self, df: pd.DataFrame, prediction_size: int) -> np.ndarray:

history = df["target"][-expected_length:-prediction_size]
if np.any(history.isnull()):
raise ValueError("There are NaNs in a forecast context, forecast method required context to filled!")
raise ValueError("There are NaNs in a forecast context, forecast method requires context to be filled!")

res = np.append(history, np.zeros(prediction_size))
for i in range(self.shift, len(res)):
Expand Down

0 comments on commit 61ed089

Please sign in to comment.