Git Product home page Git Product logo

neuralcommonneighbor's People

Contributors

xi-yuanwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

neuralcommonneighbor's Issues

Code for neural common neighbor

Great thanks for opening the code, and sharing the new idea for link prediction task.

I tried to get the specific code for implementing neural common neighbor operation. But it seems not easy to target the right part. In the paper, neural common neighbor operator is based on the GNN representations of common neighbors. However, the train function in NeighborOverlap.py looks like missing the code for obtaining common neighbor representations before the predictor layer. Maybe I miss something important. Could you please give some hints to help me better understand the code?

Best

Inconsistency between the code and paper

Hello,
Xiyuan, @Xi-yuanWang

Thanks for sharing the code.
I found that the code and the paper don't seem to match. In the paper, Equation (16) uses the concatenation of two nodes' representation and their common neighbors' representation. But in the code of CNLinkPredictor class, it seems summation is used:

cn = adjoverlap(adj, adj, tar_ei, filled1, cnsampledeg=self.cndeg)
xcns = [spmm_add(cn, x)]
xij = self.xijlin(xi * xj)

xs = torch.cat(
    [self.lin(self.xcnlin(xcn) * self.beta + xij) for xcn in xcns],
    dim=-1)

Besides, torch.cat() in this code seems useless since there is only one tensor in xcns. Please correct me if I have misunderstood.

Best wishes,
Lei

How to get AUC

Thank you for your excellent work! I want to use AUC metrics on my own dataset for evaluation. But I can't find the logits of the predictor output. Could you please provides some details on how to use AUC for evaluation?

Custom Data

Hello,

I wanted to run NCNC on my own dataset. Can you guide me as to how to do so?

Thank you!

Suggestion on hyperparamter tuning on other datasets

Hi,

I am trying to apply NCN/NCNC to other graphs. In the README, it seems there are a lot of hyperparameters to tweak with. Are there any general suggestions about where to start the hyperparameter tuning?

Thanks,

Query regarding the use of `use_valedges_as_input` for Planetoid

Dear authors,

Thank you for sharing the code to your paper on NCN/NCNC.

I had a query regarding the use of use_valedges_as_input usage in your model in comparison to BUDDY/ELPH (Table 3 results). If I am not mistaken, the authors of BUDDY/ELPH indicate in their appendix that validation edges are also consumed as part of training message passing edges for both Planetoid and ogbl-collab datasets at the testing time. I am including a partial sentence indicating this:

"... but for the Planetoid and ogbl-collab datasets, the message passing edges at test time are the union of the training message passing edges and the validation supervision edges"

Taken from: Chamberlain, Benjamin Paul, et al. "Graph Neural Networks for Link Prediction with Subgraph Sketching." arXiv preprint arXiv:2209.15486 (2022).

Is there any reason NCN/NCNC does not use use_valedges_as_input for the Planetoid datasets runs?

Warm regards,
Paul

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.