fvecs_readers 0.1.0

Quick and dirty .fvecs file reader
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nngerncham/fvecs_readers
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nngerncham

fvecs reader for Rust

I'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.

Quick Round-up of Functions(?)

  • 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 string
    • d specifies the dimension of the vector data
    • n specifies how many vectors is in the data set

Disclaimer

This library(?) isn't really written to be robust. Still, feel free to open issues or pull requests to change it!