Pretty sure I implemented cosine similarity correctly. I tried both using numpy’s norm function and coding the norm function using just np.sum and np.sqrt.

Woops kinda embarrassing. I needed parentheses around the denominator. But kinda odd cause I did have those before and was still getting errors. Maybe it’s cause I removed the lambda?