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.4.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for build2vec-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc3190803ede7825d1ee20e09d033b4df3060e5f7e3b38a2f2152f845eec47c |
|
MD5 | feb81fd48de9e83c688e235e4e53856b |
|
BLAKE2b-256 | 9085c920d6a569c62a40faa40498f4d7752f691f7ddbb904247224e698b349aa |