question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reverse_types for as_edge_prediction_sampler not properly documentated

See original GitHub issue

📚 Documentation

https://docs.dgl.ai/en/0.8.x/generated/dgl.dataloading.as_edge_prediction_sampler.html

This tutorial doesn’t mention that when passing reverse_etypes dict, it is assumed that edges of the reverse types have the same id. (e.g clicks and clicked-by) I found this info here: https://discuss.dgl.ai/t/exclude-eids-in-edgedataloader/1552

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Rhett-Yingcommented, Aug 29, 2022

Let’s add clarity into doc. It’s great if you can help do this.

0reactions
as51340commented, Aug 24, 2022

could you share a minimum and runnable snippet to elaborate this

I don’t have runnable but I can give you an example which I encountered. Let’s say that you are loading a graph from a graph database in which nodes are connected with edges in both directions. The most logical way to convert a graph from graph databases to DGLGraph is to iterate over nodes and their out_edges or in_edges. It is really hard(or more to say computationally inefficient) to search for each edge you encounter, its reverse edge pair and hence construct a graph in which edge and reverse_edge have the same id.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dgl.dataloading.as_edge_prediction_sampler - DGL Docs
reverse_types , for excluding not only the edges in the current minibatch but also their reverse edges stored in another type according to...
Read more >
dgl/minibatch-edge.rst at master · dmlc/dgl - GitHub
If each edge in a type has a reverse edge with the same ID in another type, you can specify the mapping between...
Read more >
RV Document Type Reverse AB problem Field STBLG not ...
Hi Expert, we are facing problem for audit purpose ,, sales return Document Type RV in OBA7 document type Reversed type is AB, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found