Machine Learning in Function Spaces