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 Mar 19, 2024
1 parent ad4cfd4 commit b07bd48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/safeds/ml/nn/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ def predict(self, test_data: Table) -> TaggedTable:
for item in range(len(elem)):
if not self._is_multi_class:
if elem[item].item() < 0.5:
predicted_class = 0 # pragma: no cover
else: # pragma: no cover
predicted_class = 1 # pragma: no cover
predicted_class = 0 # pragma: no cover
else: # pragma: no cover
predicted_class = 1 # pragma: no cover
predictions.append(predicted_class)
else:
values = elem[item].tolist()
Expand Down

0 comments on commit b07bd48

Please sign in to comment.