Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L LATINO-moved-to-GitHub
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Miha
  • LATINO-moved-to-GitHub
  • Issues
  • #1
Closed
Open
Issue created Mar 21, 2013 by matjaz@mjursicDeveloper

Is empty sparse vector valid in cosine similarity calculation.

Reason why this is not valid operation:

  • From the calculational point of view there is a problem of normalizing similarity measure since one vector's length is zero therefore you get 0/0 which is undefined.

However, in my opinion it should be valid and return 0:

  • Since from conceptual perspective cosine similarity is only normalized dot product similatiry. So if dot product can say that similarity to empty sparse vector it zero tha also cosine similarity should.
Assignee
Assign to
Time tracking