An Analysis of Regularized Approaches for Constrained Machine Learning