Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
(adj)
| 172 | |
| 173 | |
| 174 | def preprocess_adj(adj): |
| 175 | """Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.""" |
| 176 | adj_normalized = normalize_adj(adj + sp.eye(adj.shape[0])) |
| 177 | return sparse_to_tuple(adj_normalized) |
| 178 | |
| 179 | def preprocess_adj_bias(adj): |
| 180 | num_nodes = adj.shape[0] |
nothing calls this directly
no test coverage detected