Closed LaurentBerder closed 1 year ago
Based on this I cannot tell.
Thanks @benedekrozemberczki.
That's a bummer. But the DynamicGraphTemporalSignalBatch
class is designed for this kind of structure, right?
What kind of extra details could I provide so that you can have a better idea of it?
Or maybe you could tell me what kind of shape DynamicGraphTemporalSignalBatch
expects for edge_indices
of a graph that doesn't always have the same amount of edges (that's how I interpret the "dynamic" part of the graph).
Hi,
I'm trying to implement a model for a Dynamic Spatio-Temporal Graph, which therefore does not have the same amount of edges for each timestamps.
Therefore, though I'm able to create tensors of regular dimensions for edge_weights, features and targets, I can't for edge_indices, and I fall back to having a list of lists.
Here are the dimensions that I have:
features
: 403 10 54 2 (nb_timeframes batch_size nb_nodes nb_node_features)targets
: 403 10 54 (nb_timeframes batch_size nb_nodes, as there's only one target variable)edge_weights
: 403 10 54 54 3 (nb_timeframes batch_size nb_nodes nb_nodes nb_edge_features)edge_indices
: 403 10 variable amount (nb_timeframes batch_size nb_edges_in_each_timeframe)I'm still able to create the
DynamicGraphTemporalSignalBatch
object without error as below:But I can't use it afterwards. Even trying to read it returns an error:
Any indication of what I'm doing wrong?