Skip to main content

GConvNet

Project description

GConvNet

GConvNet is a PyTorch module for graph convolution using triplet-based edge structures and dynamic node filtering. It enables higher-order neighborhood modeling via (3×1) convolution over node triplets, and selectively retains important nodes based on degree centrality.

Features

  • Triplet generation from sequential edges
  • (3×1) convolution on node feature triplets
  • Node filtering by degree
  • Simple integration with PyTorch models

Installation

Install with pip:

pip install GConvNet

Usage

import torch
from GConvNet import GConvNet

x = torch.rand(8, 4)
edge_index = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 4]])
model = GConvNet(4, 8)
x_out, edge_index_out = model(x, edge_index)

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

gconvnet-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gconvnet-0.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gconvnet-0.0.3.tar.gz.

File metadata

  • Download URL: gconvnet-0.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for gconvnet-0.0.3.tar.gz
Algorithm Hash digest
SHA256 51c55fd25f1feb160796a3ba8f132dd1cafb9bbb461cd2ac8e5e8276ccd9201c
MD5 04f5b95a71f5123b8deabec9a1f817ab
BLAKE2b-256 c2f431a363610a9d3d2d08a9b26b5c3f5930234cbaf864e49322920bb837ac60

See more details on using hashes here.

File details

Details for the file gconvnet-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gconvnet-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for gconvnet-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1478aba6e4c03282fbf4da3141fdf925adbfbe7a0f5cc24d91891304367421c7
MD5 efbd9ffc7df07b9b5fdfca52f73959ab
BLAKE2b-256 c2e648464924333e544c20e4c3014eb7e33b5167564df289135f91279ff4fa1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page