-
Sorry if this is a dumb question. I am trying to use the LCC transform for node classification. Is this the right way to use it? newdata = LargestConnectedComponents(data)
print(newdata)
LargestConnectedComponents(Data(x=[2708, 1433], edge_index=[2, 10556], y=[2708], train_mask=[2708], val_mask=[2708], test_mask=[2708])) How do I access the data attributes? print(newdata.x)
AttributeError: 'LargestConnectedComponents' object has no attribute 'x' I tried converting to NetworkX choosing the LCC and then converting back to PyG graph. But the y-labels still show the original number instead of the LCC number. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
AdarshMJ
Mar 17, 2023
Replies: 1 comment 3 replies
-
Sorry my bad. I got it. Thanks again for this wonderful library! |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
AdarshMJ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry my bad. I got it. Thanks again for this wonderful library!