https://medium.com/@monocosmo77/working-with-topological-obstructions-in-machine-learning-part8-8581cfea257b