SWASD (Sliced-Wasserstein Automated Stationarity Detection) is a Python package that provides an automated framework for detecting convergence of Markov chains to their stationary distributions. SWASD is applicable to both Markov Chain Monte Carlo (MCMC) and fixed-learning-rate stochastic optimization (FLSO) algorithms.
pip install swasdgit clone https://github.com/Manushi22/swasd.git
cd swasd
pip install -e .SWASD requires Python 3.10+ and the following packages:
numpy >= 2.0scipy >= 1.10matplotlib >= 3.7tqdm >= 4.66arviz >= 0.16pystan >= 3.7POT >= 0.9.3(Python Optimal Transport)xarray >= 2023.7.0
See the notebook/ directory for detailed example demonstrating usage of SWASD using FLSO updates.