Welcome to NetEmb
Embedding methods map complex objects into vectors of a low-dimensional space, in a way that preserves their essential structural properties. Once objects are represented as vectors, they can easily be compared, and standard machine learning and Deep Learning models can be used to classify them or to forecast their evolution. Most network embedding methods proposed in the literature are node-based, i.e. they map each node of a network to a vector. netemb instead embeds whole networks: each network becomes a single point of a continuous, low-dimensional space, in which the distance between two points reflects the similarity between the topologies of the corresponding networks.
The embedding is learnt from large collections of synthetic networks, created with established generative models (Erdős–Rényi, Barabási–Albert, Watts–Strogatz, modular networks, etc.) whose governing parameter is known. The Laplacian eigenvalue spectrum of each network is fed to a compact feedforward neural network, which is trained so that the distance between the embeddings of two networks of the same model matches the difference between their governing parameters; optionally, networks created by different models can also be pushed apart. Once trained, the model embeds any new network in a single forward pass. The approach works with undirected, directed and weighted networks.
The underlying concept is described in the paper:
Zanin, M. Topology-driven embedding of networks. In preparation.
This Python package is designed to simplify the training and use of such embeddings, as well as their integration into any data analysis pipeline. In this documentation, we are going to explore a few topics of interest, which are listed below.
Setup
This package can be installed from PyPI using pip:
pip install netemb
This will automatically install all the necessary dependencies as specified in the
pyproject.toml file.
Topics:
-
Installation and requirements. Python version and packages needed to run
netemb, and how to run its unit tests. -
Examples of usage. We recommend that you start here, to get an overview of how to use the package.
-
Core functions. The
NetworkEmbedderclass and its methods, used to train a model, embed networks, and save and load trained models. -
Feature extractors. Functions transforming a network into the spectral representation used as input by the neural network.
-
Generators. The synthetic network models used to train the embedding, and how to add your own.
-
Version history. Track the changes that have been introduced in the package through time.
Acknowledgements
To be completed
Release files for netemb 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netemb-0.4.0.tar.gz | 45.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netemb-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 89.4 kB
Release files / netemb-0.4.0.tar.gz
| Download URL | netemb-0.4.0.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5d9f1327b1a2f0aaeda7a9d3f60fc6216d19bba0ac7c9c60a10478324906b76
|
|
BLAKE2b-256 checksum How to use checksums |
95b324ded68cf2c2f443b1ed84ae74272aeb90744c33ef76d942d6b5bc17a1f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / netemb-0.4.0-py3-none-any.whl
| Download URL | netemb-0.4.0-py3-none-any.whl |
|---|---|
| Size | 44.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fdebdbcf1be343d490c6bfe664c2fa5051a4731fc1ba6bfca9d0ad338bc0f707
|
|
BLAKE2b-256 checksum How to use checksums |
448672375a2d3fbab862f1cf21faa1b82eb3727cf8d170eeac23859352921dc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|