mirror of
https://github.com/20kaushik02/CSE515_MWDB_Project.git
synced 2025-12-06 09:24:07 +00:00
task 1 correction
This commit is contained in:
parent
af0f50d981
commit
1a07e0c957
@ -277,7 +277,7 @@ def calculate_label_representatives(fd_collection, label, feature_model):
|
|||||||
img_fds[feature_model]
|
img_fds[feature_model]
|
||||||
).flatten() # get the specific feature model's feature vector
|
).flatten() # get the specific feature model's feature vector
|
||||||
for img_fds in fd_collection.find(
|
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
|
) # repeat for all images
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user