1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 19:41:00 +08:00

fix tra dataset bug (#1050)

This commit is contained in:
you-n-g
2022-04-15 17:15:44 +08:00
committed by GitHub
parent e1271a83f7
commit 41447f320b
2 changed files with 12 additions and 5 deletions

View File

@@ -171,6 +171,7 @@ class DatasetH(Dataset):
Parameters
----------
slc : please refer to the docs of `prepare`
NOTE: it may not be an instance of slice. It may be a segment of `segments` from `def prepare`
"""
if hasattr(self, "fetch_kwargs"):
return self.handler.fetch(slc, **kwargs, **self.fetch_kwargs)