Edge Prediction
Graph's edges classification by topological (and other) features with neural network.
Installation
- Installation via pip:
pip install
- Installation with git:
git clone https://github.com/louzounlab/Edge-Prediction.git
How to use?
import networkx as nx
from EdgeClassifier.edge_classifier import EdgeClassifier
# Build networkx graph from edges list:
graph = nx.read_edgelist("./data/graph1.txt", delimiter=",", create_using=nx.DiGraph,
data=(("label", int), ("attribute1", float,)))
graph = nx.convert_node_labels_to_integers(graph)
# Build the classifier.
classifier = EdgeClassifier("./pkl", "./plots", verbose=True, gpu=False)
# Define parameters to the graph and to the model and execute.
classifier.build("graph5", graph, {
"lr": 0.001,
"batch_size": 64,
"epochs": 150
}, topological_features=None, data_features=["attribute1"])
This package classify graphs' edges by , graph edges classification by topological attributes
Attention! This package uses non boost graph-measures, and that's might make the features calculation slower. If you would like to clac them in boost environment, follow the instruction here (link), and move th .pkl file to the pkl directory.
Metadata
Release files for EdgeClassifier 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| EdgeClassifier-0.0.11.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| EdgeClassifier-0.0.11-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details |
Total release size: 18.8 kB
Release files / EdgeClassifier-0.0.11.tar.gz
| Download URL | EdgeClassifier-0.0.11.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4242a70fd771a9605cc0c25e70a1c0cc04983a3a00fb9bc203649f58dfafc353
|
|
BLAKE2b-256 checksum How to use checksums |
ead465440de656da4df059e03cd78ab4ad9ac2222647b0c0f749a9fefff01d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / EdgeClassifier-0.0.11-cp310-cp310-win_amd64.whl
| Download URL | EdgeClassifier-0.0.11-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 10.2 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fae8a053331ed570b833bed4104a954ba6d78670adde9d218c8d06165785217a
|
|
BLAKE2b-256 checksum How to use checksums |
7f5814f508d5c6d3deef42c6aac3e7870445066133bb73b425a470fdd3a0c411
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|