From d26d9d3f86c64462235d86ad5254d589dd91ed9b Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:11:45 +0000 Subject: [PATCH] style: apply automated linter fixes --- .../ml/nn/converters/_input_converter_time_series.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/safeds/ml/nn/converters/_input_converter_time_series.py b/src/safeds/ml/nn/converters/_input_converter_time_series.py index 52ce3023e..110bbd3a2 100644 --- a/src/safeds/ml/nn/converters/_input_converter_time_series.py +++ b/src/safeds/ml/nn/converters/_input_converter_time_series.py @@ -92,7 +92,8 @@ def _data_conversion_predict(self, input_data: Table, batch_size: int) -> DataLo window_size=self._window_size, extra_names=self._extra_names, forecast_horizon=self._forecast_horizon, - continuous=self._continuous) + continuous=self._continuous, + ) return data._into_dataloader_with_window_predict( self._window_size, self._forecast_horizon, @@ -130,8 +131,12 @@ def _is_fit_data_valid(self, input_data: TimeSeriesDataset) -> bool: self._continuous = input_data._continuous self._first = False self._extra_names = input_data.extras.column_names - return (sorted(input_data.features.column_names).__eq__( - sorted(self._feature_names), ) and input_data.target.name == self._target_name) + return ( + sorted(input_data.features.column_names).__eq__( + sorted(self._feature_names), + ) + and input_data.target.name == self._target_name + ) def _is_predict_data_valid(self, input_data: Table) -> bool: for name in self._feature_names: @@ -140,4 +145,3 @@ def _is_predict_data_valid(self, input_data: Table) -> bool: if self._target_name not in input_data.column_names: return False return True -