From 565da43d48c05d965afa963e5a9853f8a45548ef Mon Sep 17 00:00:00 2001
From: Mirko Birbaumer <mirko.birbaumer@hslu.ch>
Date: Mon, 25 Apr 2022 07:49:02 +0000
Subject: [PATCH] Changed error in cosine distance in solution 5

---
 ...ercises Block 1 - Introduction to Image Classification.ipynb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notebooks/Block_1/Solutions to Exercises Block 1 - Introduction to Image Classification.ipynb b/notebooks/Block_1/Solutions to Exercises Block 1 - Introduction to Image Classification.ipynb
index 4a39fe9..30c0257 100644
--- a/notebooks/Block_1/Solutions to Exercises Block 1 - Introduction to Image Classification.ipynb	
+++ b/notebooks/Block_1/Solutions to Exercises Block 1 - Introduction to Image Classification.ipynb	
@@ -1349,7 +1349,7 @@
     "    X = X.astype('float')\n",
     "    for i in range(num_test):\n",
     "      for j in range(num_train):\n",
-    "          dists[i, j] = 1 - dot(self.X_train[j,:] , X[i,:])/(norm(self.X_train[j,:])*norm(self.X_train[j,:]))\n",
+    "          dists[i, j] = 1 - dot(self.X_train[j,:] , X[i,:])/(norm(self.X_train[j,:])*norm(self.X_train[i,:]))\n",
     "        \n",
     "    return dists\n",
     "\n",
-- 
GitLab