torchcell.datamodules.IndexSplit
- class IndexSplit(*, indices: list[int], count: int)[source]
Bases:
ModelStrictA sorted list of indices together with its element count.
- classmethod check_sorted_indices(values: dict[str, Any]) dict[str, Any][source]
Validate that the indices list is sorted in ascending order.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].