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

A problem of GraphSAGE #4

Open
yangfeizZZ opened this issue May 25, 2022 · 0 comments
Open

A problem of GraphSAGE #4

yangfeizZZ opened this issue May 25, 2022 · 0 comments

Comments

@yangfeizZZ
Copy link

Hello author:
When i run:
unsupervised_samples = UnsupervisedSampler(G, nodes=nodes, length=length, number_of_walks=number_of_walks, seed=42)
graphsage = GraphSAGE(layer_sizes=layer_sizes, generator=train_gen, aggregator=AttentionalAggregator, bias=True,
dropout=0.0, normalize="l2", kernel_regularizer='l1')"
layer_sizes = [50, 50]
assert len(layer_sizes) == len(num_samples)
the error is occurring.
The error is "TypeError: Generator should be an instance of GraphSAGENodeGenerator or GraphSAGELinkGenerator"
Please,how to resolve it?

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

1 participant