Skip to content

Commit

Permalink
remove error for small windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kasyanovse committed Nov 23, 2023
1 parent c38c22f commit b3a2299
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def _check_and_correct_window_size(self, time_series: np.array, forecast_length:

# Minimum threshold
if self.window_size < self.window_size_minimum:
raise ValueError(f"Window size is to low {self.window_size}. It should be greater")
self.log.info((f"Warning: window size of lagged transformation was changed "
f"from {self.params.get('window_size')} to {self.window_size_minimum}"))
self.params.update(window_size=self.window_size_minimum)

def _update_column_types(self, output_data: OutputData):
"""Update column types after lagged transformation. All features becomes ``float``
Expand Down

0 comments on commit b3a2299

Please sign in to comment.