Skip to content

ValueError: No such metric AnnoyIndex when running neofuzz #19

Description

@sambaPython24

I get the following error:

/usr/local/lib/python3.12/dist-packages/neofuzz/process.py in index(self, options)
     75         vectors = self.vectorizer.transform(self.options)
     76         n_dimensions = vectors.shape[1]
---> 77         self.nearest_neighbours = AnnoyIndex(n_dimensions, self.metric)
     78         for i_option, vector in enumerate(vectors):
     79             self.nearest_neighbours.add_item(i_option, vector)

ValueError: No such metric

import annoy works in general, so it is installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions