Week 2 Programming Assignment: Operations on Word Vectors - Debiasing


i found

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


thanks. felipe.


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