You can use this assignment in your class!
Mastery Progress(100.0%)
i

Unit 4.2: Count-based vectors

What's the cosine similarity between [86, -36, -34, -51] and [51, 67, 27, 52]?

You answeredJUST NOW

(Student response here)

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchAPR 18, 2021, 3:53:30 PM

(86×51)+(36×67)+(34×27)+(51×52)862+362+342+512×512+672+272+522 == (4386)+(2412)+(918)+(2652)7396+1296+1156+2601×2601+4489+729+2704 == 159612449×10523 0.139

Was this helpful?

(Voting helps us personalize your learning experience!)
imgCosine similarity formula
By Alec Kretch (Apr 12, 2024)

Was this helpful?

(Voting helps us personalize your learning experience!)
imgCosine similarity example clip

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?

What's the cosine similarity between [-58, 37, 90, 64, 57] and [87, 13, -39, 74, 75]?

Select one of the following options:
  • A.

    -0.694

  • B.

    0.046

  • C.

    0.047

  • D.

    -0.046

  • E.

    0.694

Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.