Learning to Optimize with Distributional Shift Constraints: A Novel Framework for Safe Domain Adaptation in Machine Learning | Synapse