This commit is contained in:
Kaushik Narayan R 2023-11-28 23:01:03 -07:00
commit a74a5b230d
2 changed files with 405 additions and 1 deletions

404
Phase 3/task_5.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@ -288,7 +288,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
]