https://medium.com/@monocosmo77/making-machine-learning-pipelines-with-hausdorff-measure-part2-1940e4b04db3