SWXAI Documentation

SWXAI (Space Weather Explainable AI Toolkit) is a Python library that provides a single, consistent API for running explainable-AI methods on image, time-series, and tabular models for space-weather and heliophysics tasks. One SpaceWeatherExplainer class dispatches to the right backend (PyTorch + Captum, SHAP, LIME, AEON, Grad-CAM, …), validates inputs, and writes uniformly-named outputs (attributions.npy, summary.json, *.png).

The toolkit is developed at the Data Mining Lab, Georgia State University.

Quick links


Contents


At a glance

Modality

Methods

Backends

Image

IG, Saliency, SmoothGrad, Occlusion, Grad-CAM/++

PyTorch + Captum, pytorch-grad-cam

Time-series

IG, Saliency, SmoothGrad, Occlusion, model-agnostic occlusion

PyTorch + Captum, scikit-learn, AEON

Tabular

SHAP (Tree/Kernel), LIME, ICE, Ceteris-Paribus

scikit-learn, SHAP, LIME

Modality

Input shape

Image

[N, C, H, W]

Time-series

[N, T, C] (or [N, T] for univariate)

Tabular

[N, F]