Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
(adj)
| 130 | |
| 131 | |
| 132 | def preprocess_adj(adj): |
| 133 | """Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.""" |
| 134 | adj_normalized = normalize_adj(adj + sp.eye(adj.shape[0])) |
| 135 | return sparse_to_tuple(adj_normalized) |
| 136 | |
| 137 | |
| 138 | def construct_feed_dict(features, support, labels, labels_mask, placeholders): |
no test coverage detected