From 9463ec48bd438a0c96cb526e60d4cea3a65ce7d8 Mon Sep 17 00:00:00 2001 From: Roman Bredehoft Date: Fri, 28 Jul 2023 15:14:59 +0200 Subject: [PATCH] Fix invalid escape sequence '\s' in Dataset docstring --- skorch/dataset.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skorch/dataset.py b/skorch/dataset.py index 5a561276e..547f35b78 100644 --- a/skorch/dataset.py +++ b/skorch/dataset.py @@ -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 @@ -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.