-
Hi Matt, thanks for very helpful comments before. def pre_process(train_dataset, depth):
train_loader_pre = DataLoader(train_dataset, batch_size=1, shuffle=False)
clusters = []
for data in train_loader_pre:
for i in range(depth):
x, edge_index, edge_attr, pos = data.x, data.edge_index, data.edge_attr, data.pos
cluster = graclus(edge_index)
cluster, _ = consecutive_cluster(cluster)
clusters.append(cluster)
data = max_pool(clusters[i], data, transform=transform)
break
return clusters However, when I tried to run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
I think the |
Beta Was this translation helpful? Give feedback.
I think the
graclus
method currently has problems dealing with isolated nodes. Can you check if there exists isolated nodes in your graph after a certain amount of coarsening?