Skip to content

Commit 51c9372

Browse files
author
Jan Beitner
committed
Fix formatting
1 parent c30831a commit 51c9372

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pytorch_forecasting/data/timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ def __init__(
10941094
10951095
Args:
10961096
data_source (TimeSeriesDataSet): timeseries dataset.
1097-
drop_last (bool): if to drop last mini-batch from a group if it is smaller than batch_size. Defaults to False.
1097+
drop_last (bool): if to drop last mini-batch from a group if it is smaller than batch_size.
1098+
Defaults to False.
10981099
shuffle (bool): if to shuffle dataset. Defaults to False.
10991100
batch_size (int, optional): Number of samples in a mini-batch. This is rather the maximum number
11001101
of samples. Because mini-batches are grouped by prediction time, chances are that there

tests/test_data.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
import pytest
88
from sklearn.preprocessing import StandardScaler
99
import torch
10-
from torch.utils.data import dataset
1110

1211
from pytorch_forecasting.data import (
1312
EncoderNormalizer,
1413
GroupNormalizer,
1514
NaNLabelEncoder,
1615
TimeSeriesDataSet,
17-
TimeSynchronizedBatchSampler,
1816
)
1917
from pytorch_forecasting.data.examples import get_stallion_data
2018

0 commit comments

Comments
 (0)