Explainers are Model resources with some extra settings. They allow a range of explainers from the Alibi-Explain library to be run on MLServer.
An example Anchors explainer definitions is shown below.
The key additions are:
type
: This must be one of the supported Alibi Explainer types supported by the Alibi Explain runtime in MLServer.
modelRef
: The model name for black box explainers.
pipelineRef
: The pipeline name for black box explainers.
Only one of modelRef and pipelineRef is allowed.
Blackbox explainers can explain a Pipeline as well as a model. An example from the Huggingface sentiment demo is show below.