I want to train an output vector(which is from deep learning model) like fixed vector. Hence, I chose a cosine similarity between two vectors as the objective function. However, I don't know if that is a correct approach for my need.
Asked
Active
Viewed 755 times
-2
-
In order to contribute, we need sample code of what you are working with in order to weight in or propose alternatives. – SeeDerekEngineer Jul 24 '17 at 02:34
1 Answers
1
No. The cosine similarity is a measure of how similar two items (samples in your dataset) are.
In contrast, the objective function when training a neural network should be a definition of the current estimation error over the data - so they are different things.

carrdelling
- 1,675
- 1
- 17
- 17