Skip to content
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

Running benchmark with custom dataset #484

Open
mukunth1987 opened this issue Jan 3, 2024 · 1 comment
Open

Running benchmark with custom dataset #484

mukunth1987 opened this issue Jan 3, 2024 · 1 comment

Comments

@mukunth1987
Copy link

mukunth1987 commented Jan 3, 2024

Hello,
Currently the repo has pre-defined dataset (glove, SIFT, NYTIMES).
Can I use my own custom dataset(*.csv) instead of the above and run the benchmark ?

Thanks in advance.

@maumueller
Copy link
Collaborator

You won't be able to run directly on your csv file. You will first have to add some wrapper code to https://github.com/erikbern/ann-benchmarks/blob/main/ann_benchmarks/datasets.py (see the DATASETS dictionary in the very bottom). Usually, this involves parsing the csv into a numpy array, splitting the dataset into train/test, and using write_output(...). Hopefully, you find the many examples which are already present useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants