I want to calculate the cosine similarity score for some graph nodes from a given vector embedding file. How do I calculate the score now for each node in python? I believe using the scikit-learn, we can solve this.
I have generated an edge list from a series of graph nodes. Then I converted the edge list into a vector graph embedding using node2vec.
I expect the output to show the cosine similarity score for each node
1 -> 0.2
2 -> 0.4
3 -> 0.5
.
.
I am sorry if I was not able to explain my problem properly because I am new to data science. I can clarify in the comments.