What's the correct objective function for cosine similarity of two vectors to be 1 or 0?
The representation learning model produces vectors for objects. I want the cosine similarity of some vector pairs to be (close to) 1, some to be 0. What objective function should I use? MSE as training a regression model?
Topic machine-learning
Category Data Science