What problem does it solve? Computing Shapley values with methods like KernelSHAP requires running a separate estimation procedure for every sample, which is too slow for real-time or large-batch model explainability. This Skill trains an amortized FastSHAP explainer that produces Shapley value estimates in a single forward pass. ## Core Features & Use Cases - Amortized Explainer Training: Train a PyTorch neural network (MLP for tabular, UNet for images) with a KernelSHAP-inspired objective to output Shapley values directly. - Surrogate Model Support: Train surrogate models that accept masked features, with marginal, baseline, and image imputation strategies for tabular and image data. - Efficiency Normalization: Apply additive or multiplicative normalization so Shapley estimates satisfy the efficiency axiom. - Use Case: You have a trained LightGBM model on census data and need per-feature attribution for thousands of predictions. Train a surrogate and FastSHAP explainer once, then generate all explanations with single forward passes instead of running KernelSHAP per sample. ## Quick Start Train a FastSHAP explainer on my tabular dataset and generate Shapley value explanations for the test set.