From be86733a9359c20a13d5ac6609d51bc9252c8152 Mon Sep 17 00:00:00 2001 From: aleksandrskoselevs <111278851+aleksandrskoselevs@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:11:15 +0200 Subject: [PATCH] Update 15_2_Wasserstein_Distance.ipynb Scaling of the distance matrix was not mentioned in the book. --- Notebooks/Chap15/15_2_Wasserstein_Distance.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Notebooks/Chap15/15_2_Wasserstein_Distance.ipynb b/Notebooks/Chap15/15_2_Wasserstein_Distance.ipynb index 332b36f..9f70e26 100644 --- a/Notebooks/Chap15/15_2_Wasserstein_Distance.ipynb +++ b/Notebooks/Chap15/15_2_Wasserstein_Distance.ipynb @@ -86,6 +86,8 @@ "cell_type": "code", "source": [ "# TODO Define the distance matrix from figure 15.8d\n", + "# Each element (i, j) in the distance matrix represents the absolute difference between positions i and j,\n", + "# scaled by the maximum possible distance to ensure the values lie within [0, 1].\n", "# Replace this line\n", "dist_mat = np.zeros((10,10))\n", "\n", @@ -243,4 +245,4 @@ } } ] -} \ No newline at end of file +}