-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docstring and fix generate grountruth #2377
base: branch-24.10
Are you sure you want to change the base?
Conversation
python -m raft_ann_bench.generate_groundtruth --dataset /dataset/base.\ | ||
fbin --output=groundtruth_dir --queries=/dataset/query.public.10K.fbin | ||
python -m raft_ann_bench.generate_groundtruth --output=groundtruth_dir \ | ||
--queries=/dataset/query.public.10K.fbin /dataset/base.fbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What has changed here? I think we would like to keep the --dataset argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change is correct, in the first version of this script dataset
was a keyword argument, but it was later changed to a positional argument. Here the docstring is corrected to give dataset
as a positional arg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Kh4L for this PR! In the PR description you write that "sqeuclidean is not supported in raft-ann-bench". I think that is not correct, I have tested in 24.06 and 24.08, and it is supported in both cases. Therefore I would recommend to keep the default metric "sqeuclidean". The rest of the docstring change look good to me.
python -m raft_ann_bench.generate_groundtruth --dataset /dataset/base.\ | ||
fbin --output=groundtruth_dir --queries=/dataset/query.public.10K.fbin | ||
python -m raft_ann_bench.generate_groundtruth --output=groundtruth_dir \ | ||
--queries=/dataset/query.public.10K.fbin /dataset/base.fbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change is correct, in the first version of this script dataset
was a keyword argument, but it was later changed to a positional argument. Here the docstring is corrected to give dataset
as a positional arg.
python/raft-ann-bench/src/raft_ann_bench/generate_groundtruth/__main__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Serge, LGTM!
Fix docstring