Skip to content

Commit

Permalink
Merge pull request #146 from superlinked/robertdhayanturner-patch-3
Browse files Browse the repository at this point in the history
test image size html tag in node_representation_learning
  • Loading branch information
robertdhayanturner authored Jan 17, 2024
2 parents 0443038 + 2de63bf commit 860a520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/use_cases/node_representation_learning.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ $P(\text{context}|\text{source}) = \frac{1}{Z}\exp(w_{c}^Tw_s)$
-->
![Node2Vec conditional probability](../assets/use_cases/node_representation_learning/context_proba_v3.png)

<img src=assets/use_cases/node_representation_learning/context_proba_v3.png alt="Node2Vec conditional probability" data-size="55" />

Here, *w_c* and *w_s* are the embeddings of the context node *c* and source node *s* respectively. The variable *Z* serves as a normalization constant, which, for computational efficiency, is never explicitly computed.

The embeddings are learned by maximizing the co-occurence probability for (source,context) pairs drawn from the true data distribution (positive pairs), and at the same time minimizing for pairs drawn from a synthetic noise distribution. This process ensures that the embedding vectors of similar nodes are close in the embedding space, while dissimilar nodes are further apart (with respect to the dot product).
Expand Down

0 comments on commit 860a520

Please sign in to comment.