Learning functions through Diffusion Maps