Week 2 Programming Assignment: Operations on Word Vectors - Debiasing

hi!

i found

max_cosine_sim = -100 # Initialize max_cosine_sim to a large negative number

why?

thanks. felipe.

Because

If the cosine_sim is more than the max_cosine_sim seen so far,
then: set the new max_cosine_sim to the current cosine_sim and the best_word to the current word (≈3 lines)

Hence, you want it to start low so you can assign it in your loop