xaib.base¶
- class xaib.base.Dataset(*args: Any, **kwargs: Any)[source]¶
Dataset is a wrapper around any collection of items to put in the ML model for inference
- class xaib.base.Model(*args: Any, **kwargs: Any)[source]¶
Model is a wrapper around any inference of ML or other solution in the form y = f(x) it implements method predict that given certain data x returns the response y
- class xaib.base.Explainer(*args: Any, **kwargs: Any)[source]¶
Explainer is a special kind of Model e = g(f, x) that accepts another Model and data as input and also returns a response e - an explanation
- class xaib.base.Case(*args: Any, **kwargs: Any)[source]¶
Case is a collection of Metrics which represent some high-level property of an Explainer
- class xaib.base.Metric(ds: Dataset, model: Model, *args: Any, **kwargs: Any)[source]¶
Metric is an entity which accepts Explainer, Model and Dataset and outputs a metric corresponding to the quality of Explainer v = m(g, f, x)
- class xaib.base.Factory[source]¶
Collection of constructors to build and return objects from predefined hardcoded or added dynamically constructors