torchcell.metabolism.constraints.TableCoverage
- class TableCoverage(*, n_total: int, n_known: int, fraction: float)[source]
Bases:
BaseModelHow much of a parameter table is real, stated rather than assumed.
Every incomplete table in this module reports one of these. A model that silently imputes the gaps and a model that reports 80.6 % coverage make the same predictions; only the second one can be reviewed.
- classmethod of(mask: ndarray) TableCoverage[source]
Coverage of a boolean mask.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].