Skip to content

Expose distance metric and include L2 (euclidean), L1 (city-block, or "manhattan") and cosine. #8

Description

@thorwhalen
  • cosine is useful when data is semantic (tfidf or word2vec). Cosine distance is 1 minus the cosine similarity.
  • L1 pops up in when making a model more robust, or because it's quicker to compute on the edge.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions