Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python scipy.stats.wasserstein_distance后面的代码中缺少传输矩阵_Python_Matrix_Distance_Transport_Scipy.stats - Fatal编程技术网

Python scipy.stats.wasserstein_distance后面的代码中缺少传输矩阵

Python scipy.stats.wasserstein_distance后面的代码中缺少传输矩阵,python,matrix,distance,transport,scipy.stats,Python,Matrix,Distance,Transport,Scipy.stats,查看后面的scipy.stats.wasserstein\u distance,该函数调用一个名为\u cdf\u distance(p,u\u值,v\u值,u\u权重=无,v\u权重=无),它表示该函数实现以下公式: lp(u,v)=\left(\int{-\infty}{+\infty}{+\infty}{124; u-v}^p\right){1/p} 然而,这不是我所知道的Wasserstein距离,因为尽管我在上述公式注释中看到了距离矩阵| U-V |,但明显没有运输矩阵。传输矩阵应与积

查看后面的
scipy.stats.wasserstein\u distance
,该函数调用一个名为
\u cdf\u distance(p,u\u值,v\u值,u\u权重=无,v\u权重=无)
,它表示该函数实现以下公式:

lp(u,v)=\left(\int{-\infty}{+\infty}{+\infty}{124; u-v}^p\right){1/p}

然而,这不是我所知道的Wasserstein距离,因为尽管我在上述公式注释中看到了距离矩阵
| U-V |
,但明显没有运输矩阵。传输矩阵应与积分中的距离矩阵相乘

为什么传输矩阵在
scipy.stats.wasserstein_distance
中缺失