|
io-chess
UCI chess engine
|


Public Member Functions | |
| __init__ (self, expert_datasets, chunk_size=1_000_000) | |
| __iter__ (self) | |
| __len__ (self) | |
Public Attributes | |
| chunk_size = chunk_size | |
| list | shard_offsets = [] |
| list | spatial_chunks = [] |
| num_samples = total | |
Expert sampler for ConcatDataset preserving per-shard spatial locality.
| train.ConcatExpertChunkedSampler.__init__ | ( | self, | |
| expert_datasets, | |||
| chunk_size = 1_000_000 ) |
| train.ConcatExpertChunkedSampler.__iter__ | ( | self | ) |
| train.ConcatExpertChunkedSampler.__len__ | ( | self | ) |
| train.ConcatExpertChunkedSampler.chunk_size = chunk_size |
| train.ConcatExpertChunkedSampler.num_samples = total |
| list train.ConcatExpertChunkedSampler.shard_offsets = [] |
| list train.ConcatExpertChunkedSampler.spatial_chunks = [] |