From 1a07e0c9576228c4eeb80cfe3a4e63c685ffe33c Mon Sep 17 00:00:00 2001 From: Niraj Sonje Date: Tue, 28 Nov 2023 13:40:12 -0700 Subject: [PATCH] task 1 correction --- Phase 3/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Phase 3/utils.py b/Phase 3/utils.py index 0891b3d..b94056e 100644 --- a/Phase 3/utils.py +++ b/Phase 3/utils.py @@ -277,7 +277,7 @@ def calculate_label_representatives(fd_collection, label, feature_model): img_fds[feature_model] ).flatten() # get the specific feature model's feature vector for img_fds in fd_collection.find( - {"true_label": label, "$mod": [2,0]} + {"true_label": label, "image_id": {"$mod": [2,0]}} ) # repeat for all images ]