RNNConv module for PyTorch Geometric
Project description
pyg-rnn
A PyTorch Geometric RNN-based Convolution layer for temporal graph processing.
Installation
pip install pyg-rnn
Example usage
from pyg_rnn import RNNConv
import torch
from torch_geometric.data import Data
conv = RNNConv(torch.nn.GRU, edge_index=edge_index, event_time=event_time, in_channels=16, hidden_channels=32)
x = torch.randn((num_events, 16))
output = conv(x)
print(output.shape)
Why pyg-rnn
This Module allows creation of RNN layers within a PyG model without going through a padded tensor. Creating a padded tensor can be very prohibitive for a dataset with big lead and long tail For example, it you have 1 million groups of events, where most groups have 3-5 events (long take), but some have about 1000, you will need to create a padded tensor $10000001,000n$, where $n$ is the number of properties within each event. That can be 100 times more space than needed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyg_rnnconv-0.1.0.tar.gz.
File metadata
- Download URL: pyg_rnnconv-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ac280a22eecf32a70e01c4953ce83e734e1aa1de72327f6b19423ee5e919723
|
|
| MD5 |
ce786d9077096c21b64c3d261c4fc7eb
|
|
| BLAKE2b-256 |
2399a816bc840422bee5866e9f910059ddcd3c7464a7881d8e80d134f6b93730
|
File details
Details for the file pyg_rnnconv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyg_rnnconv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8e1db54803c7a6e19d99843d8692bc9d83ae69f22bb3f601ea128cecd2335fa
|
|
| MD5 |
0c66c3437a724d4511679fbbed474a6b
|
|
| BLAKE2b-256 |
ae916871930472fe4675259b4fdfa12e558fe57445169a979467dfe2c00a609b
|