JasonLaw
V2EX  ›  算法

关于“MIT 6.006 Introduction to Algorithms - Lecture 2: Models of Computation, Document Distance”的疑问

  •  
  •   JasonLaw · Sep 30, 2020 · 1762 views
    This topic created in 2057 days ago, the information mentioned may be changed or developed.

    MIT 6.006 Introduction to Algorithms - Lecture 2: Models of Computation, Document Distance介绍了一个计算两个文档差异的方法,如下图所示:

    image

    要计算“cosine of the angle between two vectors”,不是应该像Angle between two vectors所说的那样计算吗?

    The cosine of the angle between two vectors is equal to the dot product of this vectors divided by the product of vector magnitude.

    为什么在课程所介绍的方法中,“The cosine of the angle between two vectors”是“the dot product of this vectors”除以“the product of the number of words in document”?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5705 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 03:20 · PVG 11:20 · LAX 20:20 · JFK 23:20
    ♥ Do have faith in what you're doing.