https://medium.com/@monocosmo77/working-with-maximum-weighted-matching-part2-machine-learning-7f4f51e5ef23