I’m confused the document of CosineSimilarity. A similarity can be computed between two objects. If we have a hundred of vectors then the total number of similarities is one hundred by one hundred. But, the size of the output in the document is one hundred. I don’t understand what it means…
Btw, in my case I have two matrices, the shape of first matrix is (N, C) and the shape of second matrix is (M, C) in row vectors. In this case, how can I compute a similarity matrix between two matrices of which size is (N, M) using CosineSimilarity function?