Parse index file.
(filename)
| 11 | datadir = "data" |
| 12 | |
| 13 | def parse_index_file(filename): |
| 14 | """Parse index file.""" |
| 15 | index = [] |
| 16 | for line in open(filename): |
| 17 | index.append(int(line.strip())) |
| 18 | return index |
| 19 | |
| 20 | def preprocess_citation(adj, features, normalization="FirstOrderGCN"): |
| 21 | adj_normalizer = fetch_normalization(normalization) |