Weighted-Metapath2Vec
Weighted-Metapath2Vec is a Python package to embed heterogeneous graphs. The algorithm uses a weighted alternative to Metapath2vec to compute the embeddings. The embeddings can be used for downstream machine learning.
Installation
pip install weighted-metapath2vec
Usage
from weighted_metapath2vec import WeightedMetapath2VecModel
... # Load a networkx graph as G
metapaths = [
['Article', 'Author', 'Article'],
['Author', 'Article', 'Author']
]
model = WeightedMetapath2VecModel(G,
metapaths,
walk_length=3,
n_walks_per_node=20,
embedding_dim=128)
node_embeddings = model.fit_transform()
... # downstream task
Contributing
Use GitHub to fork and submit pull requests.
License
MIT License. See the LICENSE file.
Metadata
Release files for weighted-metapath2vec 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weighted-metapath2vec-0.1.4.tar.gz | 4.4 kB | Without provenance | Details for weighted-metapath2vec-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weighted_metapath2vec-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for weighted_metapath2vec-0.1.4-py3-none-any.whl |
Total release size: 9.2 kB
Release files / weighted-metapath2vec-0.1.4.tar.gz
| Download URL | weighted-metapath2vec-0.1.4.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0a59acf3f1b25e1002e580ab56ba3fd42d0a859a43f2459cd423d0b674cc6c8
|
|
BLAKE2b-256 checksum How to use checksums |
a57a2c8f44fa882f92366fcfe542c06fff0164207f9039ea17f90aa4fc3413e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0
|
Release files / weighted_metapath2vec-0.1.4-py3-none-any.whl
| Download URL | weighted_metapath2vec-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
079410485211ac9687e964b199915d5bf390ed1870be5b93b385178c1d176830
|
|
BLAKE2b-256 checksum How to use checksums |
2b4cfb6c63dabf5e04bda0e931d2175a3903a9245f3a106da19b28ee4622f25b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0
|
Security for weighted-metapath2vec 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.