GithubHelp home page GithubHelp logo

Code about graphcl HOT 12 CLOSED

shen-lab avatar shen-lab commented on August 27, 2024
Code

from graphcl.

Comments (12)

yyou1996 avatar yyou1996 commented on August 27, 2024

Hi, @wangzeyu135798,

The code should automatically download the dataset at the first run if you download the correct dependencies. Please feel free to drop questions if it still not works.

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

yyou1996 avatar yyou1996 commented on August 27, 2024

包括的。他会自动下载数据,然后预处理成.pt文件。需要torch-geometric版本之类的正确才行。

from graphcl.

yyou1996 avatar yyou1996 commented on August 27, 2024

I make an update to provide the conda environment file that might help you collect the required dependencies. Please see https://github.com/Shen-Lab/GraphCL/tree/master/semisupervised_TU#option-2.

Any other questions feel free to drop here. Thanks.

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

yyou1996 avatar yyou1996 commented on August 27, 2024

First, is one positive pair is the same graph data instance augmented in two aspects?: Yes.

Second, when calculating the loss, line res_gcn.py line 233, loss = pos_sim / (sim_matrix.sum(dim=1)) - pos_sim - self_sim, while in paper equation(3) the last  two components(pos_sim and self_dim) are lost, why? Thanks for pointing it out. The denominator in formulation should be corrected as sum_{k=1, k!=i}^N xxx.

ValueError: Found input variables with inconsistent numbers of samples: [3699, 4110] Would you mind sharing your environment.yml file that I can double-check? Thanks.

还有一个问题。在semisupervised-TU/fine-tuning/train_eval.py 里面,调用train函数的时候是在进行有监督训练,那么此时的model不也应该被保存吗?在代码中没有看到调用train函数时模型被save。 In finetuning I only saved the results before since the overall results are 10- or 100-fold evaluation with 5 runs. Of course, you can make small modification in code to save the models.

Hope my answers can help you.

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

yyou1996 avatar yyou1996 commented on August 27, 2024

Please follow the dependencies part https://github.com/Shen-Lab/SS-GCNs#dependencies that pip install only provide your the API between python and METIS, but you also need to install METIS such that python can call METIS.

In https://github.com/Shen-Lab/SS-GCNs#dependencies for Linux thus we need to run sudo apt-get install libmetis-dev.

from graphcl.

wangzeyu135798 avatar wangzeyu135798 commented on August 27, 2024

from graphcl.

yyou1996 avatar yyou1996 commented on August 27, 2024

Please see the bottom of this README.md https://github.com/Shen-Lab/SS-GCNs/tree/master/SS-GCNs#training--evaluation.

from graphcl.

Related Issues (20)

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.