We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19753e commit dba0decCopy full SHA for dba0dec
examples/sliced-wasserstein/plot_sliced_plans.py
@@ -42,8 +42,8 @@
42
alpha = 0.3
43
44
45
-proj_X = X @ thetas.T
46
-proj_Y = Y @ thetas.T
+# proj_X = X @ thetas.T
+# proj_Y = Y @ thetas.T
47
48
49
##############################################################################
ot/sliced.py
@@ -873,15 +873,15 @@ def sliced_plans(
873
)
874
** (1 / p)
875
876
- * plan[k]
+ * plan[k].data
877
878
for k in range(n_proj)
879
]
880
else: # metric == "sqeuclidean"
881
costs = [
882
nx.sum(
883
(nx.sum((X[plan[k].row] - Y[plan[k].col]) ** 2, axis=1))
884
885
886
887
0 commit comments