torchcell.knowledge_graphs.build_time_projection.SubsetConfig
- class SubsetConfig(*, subset_size: int | None = None, per_dataset: dict[str, int | None] = <factory>)[source]
Bases:
BaseModelA KG-build subset config, mirroring the hydra
kg_*.yamlsubsetblock.subset_sizecaps every dataset (None=> full);per_datasetoverrides that per DATASET class name (valueNone=> uncapped for that dataset).- cap_for(dataset: str) int | None[source]
Return the record cap for
dataset(None=> uncapped/full).
- effective_records(dataset: str, full_records: int) int[source]
Records actually processed =
min(cap, full);fullwhen uncapped.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].