Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jun 20, 2024
1 parent a155ad0 commit d26d9d3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/safeds/ml/nn/converters/_input_converter_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand All @@ -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

0 comments on commit d26d9d3

Please sign in to comment.