Home▸Data Science▸Link Prediction Lab 2D: Node Embeddings & Edge Scoring

Link Prediction Lab 2D: Node Embeddings & Edge Scoring

Interactive 2D graph embedding simulator: watch a GCN-style neighbor-aggregation rule pull node embeddings together on a pannable, zoomable plane, then score held-out links by cosine similarity or dot product and watch the predicted-vs-missed links light up with a live AUC readout.

Data Science2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ds-topic-67 ↗ Open standalone

This simulator builds a random community-structured graph, gives every node a random 2D embedding, and hides a fraction of the real edges as a test set. A GCN-style neighbor-mean aggregation step — the same mechanism behind GCN, GraphSAGE and GAT-style message passing — repeatedly pulls each node's embedding toward the average of its visible (train) neighbors on a pannable, zoomable plane. Score every non-train pair by cosine similarity or raw dot product, sweep a threshold to see which held-out links get correctly predicted versus missed, watch false-positive predictions light up, and track a live AUC estimate as the embeddings converge.

⚙ Under the hood

Interactive 2D graph embedding simulator: watch a GCN-style neighbor-mean aggregation rule pull node embeddings together on a pannable, zoomable plane, then score held-out links by cosine similarity or dot product and watch the predicted-vs-missed links light up with a live AUC readout.

graph neural networkslink predictionnode embeddingsGCNdata scienceAUC

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)