https://medium.com/@monocosmo77/making-machine-learning-pipelines-with-hausdorff-measure-part1-f6da5fe7e287