Understand Window SHAP feature grouping in TabPFNTSExplainer
mainWhen using TabPFNTSExplainer for Window SHAP, attributions are applied to interpretable feature groups rather than raw featurizer columns. This ensures calendar concepts (like hour_of_day) appear as single entities rather than separate sin/cos pairs.
Feature groups include:
- Calendar Concepts: One group per concept (e.g.,
hour_of_day,day_of_week), which owns its corresponding{concept}_sinand{concept}_coscolumns. - Trend: Composed of
running_indexandyear(non-periodic drift terms). - Auto-seasonal: Auto-detected Fourier columns (
sin_#.../cos_#...) derived from a Fast Fourier Transform (FFT) over the series. - User Covariates: One group per remaining column.