https://medium.com/@monocosmo77/working-with-kullback-leibler-divergence-part4-machine-learning-f29adc359a61