deepwalk error
riyaj8888 opened this issue · comments
i am using networkx graph as input for generating deepwalk embeddings but after
model.fit(graph) getting following error.
can u tell what went wrong?
Python38\site-packages\karateclub\utils\walker.py:50, in RandomWalker.do_walks(self, graph)
48 self.graph = graph
49 for node in self.graph.nodes():
---> 50 for _ in range(self.walk_number):
51 walk_from_node = self.do_walk(node)
52 self.walks.append(walk_from_node)
TypeError: 'tuple' object cannot be interpreted as an integer
What is your networkx version?
…On Tue, 14 Jun 2022 at 10:29, riyaj8888 ***@***.***> wrote:
i am using networkx graph as input for generating deepwalk embeddings but
after
model.fit(graph) getting following error.
can u tell what went wrong?
Python38\site-packages\karateclub\utils\walker.py:50, in
RandomWalker.do_walks(self, graph)
48 self.graph = graph
49 for node in self.graph.nodes():
---> 50 for _ in range(self.walk_number):
51 walk_from_node = self.do_walk(node)
52 self.walks.append(walk_from_node)
TypeError: 'tuple' object cannot be interpreted as an integer
—
Reply to this email directly, view it on GitHub
<#97>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEETMFYUKCDKZNI6IUDEC2TVPBGG7ANCNFSM5YXAEJVA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>