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 Sep 17, 2024
1 parent 1635662 commit f8d5817
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/resources/from_json_file.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
[{"a":1,"b":4},{"a":2,"b":5},{"a":3,"b":6}]
[
{ "a": 1, "b": 4 },
{ "a": 2, "b": 5 },
{ "a": 3, "b": 6 }
]
6 changes: 5 additions & 1 deletion src/resources/to_json_file.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
[{"a":1,"b":4},{"a":2,"b":5},{"a":3,"b":6}]
[
{ "a": 1, "b": 4 },
{ "a": 2, "b": 5 },
{ "a": 3, "b": 6 }
]
6 changes: 5 additions & 1 deletion src/src/resources/to_json_file.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
[{"a":1,"b":4},{"a":2,"b":5},{"a":3,"b":6}]
[
{ "a": 1, "b": 4 },
{ "a": 2, "b": 5 },
{ "a": 3, "b": 6 }
]
11 changes: 3 additions & 8 deletions tests/safeds/ml/nn/test_model.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import pickle
import re
from typing import Any, Literal

import pytest
from safeds.data.image.containers import ImageList
from safeds.data.image.typing import ImageSize
from safeds.data.labeled.containers import ImageDataset, TabularDataset
from safeds.data.labeled.containers import TabularDataset
from safeds.data.tabular.containers import Table
from safeds.data.tabular.transformation import LabelEncoder, OneHotEncoder, RangeScaler
from safeds.exceptions import (
FeatureDataMismatchError,
FittingWithChoiceError,
FittingWithoutChoiceError,
InvalidFitDataError,
InvalidModelStructureError,
ModelNotFittedError,
Expand All @@ -36,15 +32,14 @@
ConvolutionalTranspose2DLayer,
FlattenLayer,
ForwardLayer,
GRULayer,
Layer,
LSTMLayer,
MaxPooling2DLayer,
)
from safeds.ml.nn.typing import VariableImageSize
from torch.types import Device

from tests.helpers import configure_test_with_device, get_devices, get_devices_ids, images_all, resolve_resource_path
from tests.helpers import configure_test_with_device, get_devices, get_devices_ids


@pytest.mark.parametrize("device", get_devices(), ids=get_devices_ids())
Expand Down Expand Up @@ -1113,7 +1108,7 @@ def callback_was_called(self) -> bool:
# Table.from_dict({"a": [1, 2, 3, 4], "b": [1.0, 2.0, 3.0, 4.0]}).to_tabular_dataset("b"),
# optimization_metric=metric,
# )
# device.type # noqa: B018
# device.type
# assert fitted_model.is_fitted
# assert isinstance(fitted_model, NeuralNetworkRegressor)
#
Expand Down

0 comments on commit f8d5817

Please sign in to comment.