mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-04 19:41:00 +08:00
Update test_dataset
This commit is contained in:
@@ -62,7 +62,7 @@ class TestDataset(TestAutoData):
|
||||
)
|
||||
tsds_train = tsdh.prepare("train") # Test the correctness
|
||||
tsds = tsdh.prepare("valid") # prepare a dataset with is friendly to converting tabular data to time-series
|
||||
train_loader = DataLoader(tsds_train, batch_size=800, shuffle=True)
|
||||
train_loader = DataLoader(tsds_train, batch_size=800, shuffle=True, num_workers=10)
|
||||
for data in train_loader:
|
||||
now = time.localtime()
|
||||
print(time.strftime("%Y-%m-%d-%H_%M_%S", now))
|
||||
|
||||
Reference in New Issue
Block a user