Coming from legacy MLLM-Shap¶
mllm-shap replaces the legacy MLLM-Shap
research code: same algorithms; new configuration, result types and some defaults.
Explainers to estimators¶
Legacy classes per estimator and variant map to explanation.estimator plus budget
keys:
legacy MLLM-Shap class |
|
Budget keys |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The estimand is its own key, explanation.estimand (shapley or banzhaf), and
every result carries it (Using estimand aggregators).
Utilities to value functions¶
Legacy experiments named their utilities U1 to U4 (unrelated to the use cases of Using value functions):
Label |
legacy MLLM-Shap |
|
|---|---|---|
U1 |
|
|
U2 |
|
|
U3 |
|
|
U4 |
|
None: |
Since 0.7 embedding_cosine defaults to a sentence encoder; model_states keeps the
legacy pooled states of the explained model.
Behaviour that changed¶
tfidf_cosinefits IDF once on all of a run’s outputs, not per comparison, so scores compare across coalitions.Results report
base_valueandgrand_value; values should sum to their difference. Axiom tests enforce it; runs do not check it. Exact results matchPreciseShapExplaineron additive games.Archives keep the base generation and every coalition output;
reanalyze()recomputes attributions with another value function or normalizer without model calls.hash_mask()uses BLAKE2b: hashes are process-independent and differ from legacy ones.Model, generation and explanation settings live in one validated
ExplainConfig(Configuration), not keyword arguments and model config objects.