Diffusion Maps class should be functional