peal.explainers.interfaces¶
Base config and interface shared by all PEAL explainers.
ExplainerConfig is the pydantic base model that every concrete explainer
config (counterfactual, no-generator, …) extends; explainer_type and
category are the keys the yaml loader uses to pick the concrete pydantic
class. ExplainerInterface is the minimal duck-typed contract adaptors
such as CFKD rely on: explain_batch produces explanations for a batch and
run executes the explainer stand-alone.
Classes
Base pydantic config of an explainer. |
|
Duck-typed interface every explainer implements. |