MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / __len__

Method __len__

loaders/custom_dataset.py:247–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 self.glob_indices.extend(subsample_indices)
246
247 def __len__(self):
248 # This is the cumulative length of all input datasets.
249 return self.cumulative_lengths[-1]
250
251 def cache_dataset(self, dataset_index):
252 if self.current_cache_index >= 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected