https://medium.com/@monocosmo77/working-with-ehresmann-manifold-method-part7-machine-learning-2024-b1ef7faf1708