Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7615

MLLIB Word2Vec wordVectors divided by Euclidean Norm equals to zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • 1.6.1, 2.0.0
    • MLlib
    • None

    Description

      In Word2VecModel, wordVecNorms may contains Euclidean Norm equals to zero. This will cause incorrect calculation for cosine distance. when you do cosineVec(ind) / wordVecNorms(ind). Cosine distance should be equal to 0 for norm = 0.

      Attachments

        Activity

          People

            srowen Sean R. Owen
            ezli Eric Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified