Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sibre28 committed Aug 19, 2024
1 parent 7458e75 commit 7b66cdd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/safeds/ml/nn/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,8 @@ def fit_by_exhaustive_search(
elif isinstance(train_data, TimeSeriesDataset):
return self._get_best_rnn_model(
list_of_fitted_models,
train_set,
test_set,
train_set, # type: ignore[arg-type]
test_set, # type: ignore[arg-type]
optimization_metric, # type: ignore[arg-type]
positive_class,
) # type: ignore[arg-type]
Expand Down Expand Up @@ -1185,8 +1185,8 @@ def _get_best_cnn_model_column(
best_metric_value = None
for fitted_model in list_of_fitted_models:
prediction = self._inverse_one_hot_encode_by_index_of_column(
fitted_model.predict(input_data).get_output(),
) # type: ignore[attr-defined, arg-type]
fitted_model.predict(input_data).get_output(), # type: ignore[attr-defined, arg-type]
)
if best_model is None:
best_model = fitted_model
match optimization_metric:
Expand Down Expand Up @@ -1259,8 +1259,8 @@ def _get_best_cnn_model_table(
best_metric_value = None
for fitted_model in list_of_fitted_models:
prediction = self._inverse_one_hot_encode_by_index_of_column(
fitted_model.predict(input_data).get_output(),
) # type: ignore[attr-defined, arg-type]
fitted_model.predict(input_data).get_output(), # type: ignore[attr-defined, arg-type]
)
if best_model is None:
best_model = fitted_model
match optimization_metric:
Expand Down

0 comments on commit 7b66cdd

Please sign in to comment.