diff options
author | RĂ©mi Flamary <remi.flamary@gmail.com> | 2020-04-23 10:53:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 10:53:19 +0200 |
commit | 8ca4d301b8110d02acc18c51e3ecd1de0c87049b (patch) | |
tree | 49f9df24449de6ec874d73ed65ad7c851669e83a /examples | |
parent | f9638166521a1160838fae75e2a2e318d645460e (diff) | |
parent | bacb0b992aa4e1ba7e5fd0beb0bf9617c801f833 (diff) |
Merge branch 'master' into rm_travis
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plot_fgw.py | 4 | ||||
-rwxr-xr-x | examples/plot_gromov_barycenter.py | 8 | ||||
-rw-r--r-- | examples/plot_otda_mapping_colors_images.py | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/examples/plot_fgw.py b/examples/plot_fgw.py index 43efc94..cfdc33b 100644 --- a/examples/plot_fgw.py +++ b/examples/plot_fgw.py @@ -60,14 +60,14 @@ pl.subplot(2, 1, 1) pl.scatter(ys, xs, c=phi, s=70) pl.ylabel('Feature value a', fontsize=20) -pl.title('$\mu=\sum_i \delta_{x_i,a_i}$', fontsize=25, usetex=True, y=1) +pl.title('$\mu=\sum_i \delta_{x_i,a_i}$', fontsize=25, y=1) pl.xticks(()) pl.yticks(()) pl.subplot(2, 1, 2) pl.scatter(yt, xt, c=phi2, s=70) pl.xlabel('coordinates x/y', fontsize=25) pl.ylabel('Feature value b', fontsize=20) -pl.title('$\\nu=\sum_j \delta_{y_j,b_j}$', fontsize=25, usetex=True, y=1) +pl.title('$\\nu=\sum_j \delta_{y_j,b_j}$', fontsize=25, y=1) pl.yticks(()) pl.tight_layout() pl.show() diff --git a/examples/plot_gromov_barycenter.py b/examples/plot_gromov_barycenter.py index 101c6c5..6b29687 100755 --- a/examples/plot_gromov_barycenter.py +++ b/examples/plot_gromov_barycenter.py @@ -89,10 +89,10 @@ def im2mat(I): return I.reshape((I.shape[0] * I.shape[1], I.shape[2]))
-square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2] / 256
-cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2] / 256
-triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2] / 256
-star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2] / 256
+square = pl.imread('../data/square.png').astype(np.float64)[:, :, 2]
+cross = pl.imread('../data/cross.png').astype(np.float64)[:, :, 2]
+triangle = pl.imread('../data/triangle.png').astype(np.float64)[:, :, 2]
+star = pl.imread('../data/star.png').astype(np.float64)[:, :, 2]
shapes = [square, cross, triangle, star]
diff --git a/examples/plot_otda_mapping_colors_images.py b/examples/plot_otda_mapping_colors_images.py index bc9afba..a0938a0 100644 --- a/examples/plot_otda_mapping_colors_images.py +++ b/examples/plot_otda_mapping_colors_images.py @@ -8,11 +8,9 @@ OT for domain adaptation with image color adaptation [6] with mapping estimation [8]. [6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized - discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), - 1853-1882. +discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882. [8] M. Perrot, N. Courty, R. Flamary, A. Habrard, "Mapping estimation for - discrete optimal transport", Neural Information Processing Systems (NIPS), - 2016. +discrete optimal transport", Neural Information Processing Systems (NIPS), 2016. """ |