node2vec is an algorithm to generate vector representations of nodes on a
graph. The ''node2vec'' framework learns low-dimensional representations for nodes in a graph through the use of
random walk
In mathematics, a random walk is a random process that describes a path that consists of a succession of random steps on some mathematical space.
An elementary example of a random walk is the random walk on the integer number line \mathbb Z ...
s through a graph starting at a target node. It is useful for a variety of
machine learning
Machine learning (ML) is a field of inquiry devoted to understanding and building methods that 'learn', that is, methods that leverage data to improve performance on some set of tasks. It is seen as a part of artificial intelligence.
Machine ...
applications. Besides reducing the engineering effort, representations learned by the algorithm lead to greater predictive power. ''node2vec'' follows the intuition that random walks through a graph can be treated like sentences in a corpus. Each node in a graph is treated like an individual word, and a random walk is treated as a sentence. By feeding these "sentences" into a
skip-gram
In the fields of computational linguistics and probability, an ''n''-gram (sometimes also called Q-gram) is a contiguous sequence of ''n'' items from a given sample of text or speech. The items can be phonemes, syllables, letters, words or b ...
, or by using the
continuous bag of words model paths found by random walks can be treated as sentences, and traditional data-mining techniques for documents can be used. The algorithm generalizes prior work which is based on rigid notions of network neighborhoods, and argues that the added flexibility in exploring neighborhoods is the key to learning richer representations of nodes in graphs.
The algorithm is considered one of the best graph classifiers.
See also
*
Struc2vec
*
Graph Neural Network
A graph neural network (GNN) belongs to a class of artificial neural networks for processing data that can be represented as Graph (abstract data type), graphs.
In the more general subject of "geometric deep learning", certain existing neural ...
References
{{Reflist
Unsupervised learning