Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid escape sequence '\s' in Dataset docstring #1000

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions skorch/dataset.py
Original file line number Diff line number Diff line change
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
Loading