Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample code not run it need self #2

Open
aliysefian opened this issue Jan 8, 2019 · 1 comment
Open

sample code not run it need self #2

aliysefian opened this issue Jan 8, 2019 · 1 comment

Comments

@aliysefian
Copy link

if graph_labels is not None:
on line 150 must be self.graph_labels
and in train

  batch_data, batch_labels = self.g2v.generate_file_batch(self.batch_size, self.window_size, self.doc_id,
                                                                    self.ROOT + self.dataset + '_corpus{}/{}'.format(label_suffix, self.corpus_fn_name.format(self.doc_id)),
                                                                    self.nodes_per_graphs[self.doc_id])

line 266

must add self
after I fix it I don't understand that
why self.nodes_per_graphs[self.doc_id]
can't find index 69 why?

@shinyfang
Copy link

i have the same question . if u find the answer please let me know ,thank u very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants