Representation and Regression Problems in Neural Networks: Relaxation, Generalization, and Numerics