MCPcopy
hub / github.com/microsoft/qlib / IndexSampler

Class IndexSampler

qlib/model/utils.py:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class IndexSampler:
19 def __init__(self, sampler):
20 self.sampler = sampler
21
22 def __getitem__(self, i: int):
23 return self.sampler[i], i
24
25 def __len__(self):
26 return len(self.sampler)

Callers 1

testTSDatasetMethod · 0.90

Calls

no outgoing calls

Tested by 1

testTSDatasetMethod · 0.72