GRAPH 2
Last updated
Was this helpful?
Last updated
Was this helpful?
A single graph = an instance of
data.pos
: Node position matrix with shape[num_nodes, num_dimensions]
data.x
: Node feature matrix with shape[num_nodes, num_node_features]
data.edge_attr
: Edge feature matrix with shape[num_edges, num_edge_features
data.edge_index
: Graph connectivity with shape[2, num_edges]
data.y
: Target to train against (arbitrary shape)
If edge_index
is defined as list of index tuples, it should be transpose & contiguous.
torch_geometric.data.Dataset
raw_dir
= original dataset
processed_dir
= processed dataset
transform
= dynamically transforms before accessing (data augmentation)
pre_transform
= transform before saving to disk (heavy precomputation, done once)
pre_filter
= manually filter out data before saving (restriction of data being of a specific class.)