$\texttt{skwdro}$: a library for Wasserstein distributionally robust machine learning
This provides a tool for researchers and practitioners to implement robust models, but it is incremental as it packages existing methods into a library.
The authors introduced skwdro, a Python library for training robust machine learning models using Wasserstein distributionally robust optimization, featuring scikit-learn compatible estimators and PyTorch wrappers for ease of use.
We present skwdro, a Python library for training robust machine learning models. The library is based on distributionally robust optimization using optimal transport distances. For ease of use, it features both scikit-learn compatible estimators for popular objectives, as well as a wrapper for PyTorch modules, enabling researchers and practitioners to use it in a wide range of models with minimal code changes. Its implementation relies on an entropic smoothing of the original robust objective in order to ensure maximal model flexibility. The library is available at https://github.com/iutzeler/skwdro