I have another question that I was hoping someone could help me with.
I\'m using the Jensen-Shannon-Divergence to measure the similarity between two probability distribu
Since the Jensen-Shannon distance (distance.jensenshannon) has been included in Scipy 1.2
, the Jensen-Shannon divergence can be obtained as the square of the Jensen-Shannon distance:
from scipy.spatial import distance
distance.jensenshannon([1.0/10, 9.0/10, 0], [0, 1.0/10, 9.0/10]) ** 2
# 0.5306056938642212