计算wasserstein距离

import numpy as np
from scipy.stats import wasserstein_distance
p = [0,5,9]
q = [2,5,7]
w = wasserstein_distance(q,p)
print(w)

 

posted on 2020-06-02 21:17  那抹阳光1994  阅读(2242)  评论(0编辑  收藏  举报

导航