You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π Revisit β resolve scope before coding. A scoped fidelity/stability metrics
slice can live in core (aaanalysis/metrics/); cross-method DL-XAI benchmarking is
downstream. Agree the split first.
Problem
Explanation quality is asserted, not measured: there is no fidelity or stability
metric to say an explanation is faithful to the model or robust to perturbation,
so AAanalysis cannot benchmark XAI methods or build scientific credibility for its
explanations.
Goal
Land an in-core XAI evaluation metrics slice β fidelity (explanation-vs-model
consistency) and stability (importance robustness under perturbation) β in aaanalysis/metrics/ using existing deps, and route cross-method DL-XAI
benchmarking to ProtXplain (#26).
Validate against known motifs / functional regions
Cross-method benchmarking (β ProtXplain / pro)
Compare methods (CPP vs SHAP vs DL-XAI)
KPIs / Acceptance criteria
Decision gate: metrics-slice (core) vs DL-XAI benchmarking (ProtXplain)
boundary agreed and recorded before code lands.
β₯1 fidelity metric AND β₯1 stability metric implemented in aaanalysis/metrics/ with 0 new required dependencies, each returning a
scalar score.
Validated on DOM_GSEC: metrics are deterministic for a fixed random_state
and a deliberately degraded explanation scores strictly worse than the true one
(binary pass/fail).
Covered by β₯1 unit test (golden values) and an example notebook that runs
under the nbmake CI gate.
Scope / non-goals
In core: fidelity + stability metrics + perturbation tests in aaanalysis/metrics/ (NumPy/sklearn only) β they fit the existing comp_*
metrics family with no new dep.
Not in core / β ProtXplain (Prepare AAanalysis interface for ProtXplain integrationΒ #26) or pro: head-to-head benchmarking that
must run SHAP/DL-XAI methods (those deps live in pro/downstream per pro-core-boundary.md + sharp-edges). Core supplies the metrics; downstream runs
the bake-off.
Problem
Explanation quality is asserted, not measured: there is no fidelity or stability
metric to say an explanation is faithful to the model or robust to perturbation,
so AAanalysis cannot benchmark XAI methods or build scientific credibility for its
explanations.
Goal
Land an in-core XAI evaluation metrics slice β fidelity (explanation-vs-model
consistency) and stability (importance robustness under perturbation) β in
aaanalysis/metrics/using existing deps, and route cross-method DL-XAIbenchmarking to ProtXplain (#26).
Requirements
Metrics slice (in-core)
Cross-method benchmarking (β ProtXplain /
pro)KPIs / Acceptance criteria
boundary agreed and recorded before code lands.
aaanalysis/metrics/with 0 new required dependencies, each returning ascalar score.
DOM_GSEC: metrics are deterministic for a fixedrandom_stateand a deliberately degraded explanation scores strictly worse than the true one
(binary pass/fail).
under the nbmake CI gate.
Scope / non-goals
aaanalysis/metrics/(NumPy/sklearn only) β they fit the existingcomp_*metrics family with no new dep.
pro: head-to-head benchmarking thatmust run SHAP/DL-XAI methods (those deps live in
pro/downstream perpro-core-boundary.md+ sharp-edges). Core supplies the metrics; downstream runsthe bake-off.
Dependencies
Standards checklist
comp_*symbol β re-export in__init__.py(confirm)Returns, per-methodExamplesinclude)print()(useut.print_out); bareValueError/RuntimeError;no
aaanalysis._utils.*imports outsideutils.py