Crates.io | fvecs_readers |
lib.rs | fvecs_readers |
version | 0.1.0 |
source | src |
created_at | 2023-10-05 17:20:10.35456 |
updated_at | 2023-10-05 17:20:10.35456 |
description | Quick and dirty .fvecs file reader |
homepage | |
repository | https://github.com/nngerncham/fvecs_readers |
max_upload_size | |
id | 994377 |
size | 4,725 |
fvecs
reader for RustI've been working with the SIFT1M data set and its siblings quite a lot recently but the way we read their .fvecs
files are not the most straightforward. So, I've implemented this so that I don't have to rewrite/copy over the file reader every time I need to do something with that data set again.
load_fvecs
: It's basically the only function in this thing. It takes in the following parameters:
file_name
specifies the path to the file as a stringd
specifies the dimension of the vector datan
specifies how many vectors is in the data setThis library(?) isn't really written to be robust. Still, feel free to open issues or pull requests to change it!