On Inverse Problems and Machine Learning