Skip to content

Commit

Permalink
Fix invalid escape sequence '\s' in Dataset docstring (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Feb 13, 2024
1 parent 1f7a779 commit 2c91655
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions skorch/dataset.py
Expand Up @@ -105,8 +105,7 @@ def unpack_data(data):


class Dataset(torch.utils.data.Dataset):
# pylint: disable=anomalous-backslash-in-string
"""General dataset wrapper that can be used in conjunction with
r"""General dataset wrapper that can be used in conjunction with
PyTorch :class:`~torch.utils.data.DataLoader`.
The dataset will always yield a tuple of two values, the first
Expand Down Expand Up @@ -168,8 +167,7 @@ def __len__(self):
return self._len

def transform(self, X, y):
# pylint: disable=anomalous-backslash-in-string
"""Additional transformations on ``X`` and ``y``.
r"""Additional transformations on ``X`` and ``y``.
By default, they are cast to PyTorch :class:`~torch.Tensor`\s.
Override this if you want a different behavior.
Expand Down

0 comments on commit 2c91655

Please sign in to comment.