-
Hi, I am having some trouble trying to pass in the size of the adjacency matrix to graphSage. This is the code as is:
I get this error: Traceback (most recent call last): I honestly have no idea why it is not able to unpack everything in the adjacency matrix, I think it is having a problem with size. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am sorry for the confusion. If the if not isinstance(adjs, list):
adjs = [adjs] at the start of it. |
Beta Was this translation helpful? Give feedback.
I am sorry for the confusion. If the
NeighborSampler
will only sample from a single hop, thenadjs
will not be a list but will instead already return the adjacency matrix. As such, you can either drop thefor
-loop insideforward
, or write:at the start of it.