[skip ci] Add comments of parse_ann_collection_name func on benchmark (#9725)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/9743/head
wt 2021-10-12 19:16:44 +08:00 committed by GitHub
parent 338abfdf0c
commit 062902b0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ def collection_parser(collection_name):
def parse_ann_collection_name(collection_name):
"""
Analyze the collection name of the accuracy test and obtain the corresponding configuration
e.g.:
sift_128_euclidean
"""
data_type = collection_name.split("_")[0]
dimension = int(collection_name.split("_")[1])
metric = collection_name.split("_")[2]