Reliable machine learning via distributional robustness