Open arglog opened 4 years ago
Hi, thanks for filing an issue, but I'm a little confused! Are you suggesting the demo could be changed to make it easier to copy paste the code to run DGI with HinSAGE?
As you note, the correct thing to do is to only pass in nodes of the type head_node_type
. This can be done with, for instance, G.nodes(node_type="bar")
instead of G.nodes()
.
Describe the bug
In the Deep Graph Infomax demo. The function
run_deep_graph_infomax
if thebase_model
is HinSAGE with multiple node types.To Reproduce
A minimal example to trigger the error
Observed behavior
Error message
Expected behavior
Should not raise any error
Comments
The original example didn't crash because there is only one node type (
paper
) in the Cora dataset. My proposed solution is to add one more argumentnode_ids
to the functionrun_deep_graph_infomax
and replace the linewith