Python package for building data embeddings
Project description
build2Vec
Graph Neural Networks based building representation in the vector space
Installation
$ pip install build2vec
Examples
import networkx as nx
from build2vec import Build2Vec
emb_dimensions = 10
# Create a graph using networkx -- you can generate the graph from dataframe of edges
graph = nx.from_pandas_edgelist(df_links_graph)
build2vec = Build2Vec(graph, dimensions=emb_dimensions, walk_length=50, num_walks=50, workers=1)
model = build2vec.fit(window=50, min_count=1, batch_words=10)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
build2vec-0.0.3.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for build2vec-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f578fdc30672624d84468376d24214620a57eee8a1133e8abe140768ed724746 |
|
MD5 | a644deffd0d454764534419e253aa9d9 |
|
BLAKE2b-256 | 428fb5eccf44f5f21b1871f00cd27a6eb9429292347ddc2af0727b5312ce7114 |