peal.adaptors.interfaces.AdaptorConfig¶
- class peal.adaptors.interfaces.AdaptorConfig[source]¶
Bases:
BaseModelThe config template for an adaptor.
Every adaptor config extends this model. The
adaptor_typeandcategoryfields tell the yaml loader which pydantic class to instantiate; the remaining fields control reproducibility and how much intermediate output is produced.- Parameters:
adaptor_type (
str) – Name of the adaptor implementation, e.g."CFKD".category (
str) – Always"adaptor"; used to route the yaml to this config family.tracking_level (
int) – Verbosity/caching level from 0 (silent) to 5 (everything).calculate_explainer_stats (
bool) – Whether to compute explainer statistics such as sparsity/diversity.in_memory (
bool) – Whether datasets are fully loaded into RAM.
Methods
Attributes
Whether to calculate explainer stats like sparsity, diversity, etc.
The category of the config.
Whether to load all datasets into the RAM or not.
The seed of all randomness to make results reproducible.
How many intermediate results are cached an visualized.
The type of adaptor that shall be used.
- adaptor_type: str¶
The type of adaptor that shall be used. This is necessary to know which pydantic class to use when loading from yaml.
- category: str = 'adaptor'¶
The category of the config. Can not be changed for adaptor. This is also necessary to identify which pydantic class to use when loading from yaml.
- tracking_level: int = 0¶
How many intermediate results are cached an visualized. 0 -> None >=1 -> only progress bars >=2 -> prints >=3 -> caching >=4 -> visualizations >=5 -> everything, including expensive visualizations and tracking of values not mentioned by papers