Giter Club home page Giter Club logo

Comments (4)

THINK2TRY avatar THINK2TRY commented on August 25, 2024

非常感谢关注CogDL!请问这边是只需要有监督节点分类的结果 还是 有监督/无监督 都需要呢?无监督这边的话CogDL里面目前已经保存了生成的embedding

from cogdl.

huihuijiangqiang avatar huihuijiangqiang commented on August 25, 2024

非常感谢回复,您好,我这边,有监督/无监督都需要。

from cogdl.

THINK2TRY avatar THINK2TRY commented on August 25, 2024

你好,对于有监督的情况,可以先训练保存模型,再得到结果,比如 gcn + cora:

  1. python scripts/train.py --task node_classification --model gcn --dataset cora --save_model <model_path>
  2. python scripts/train.py --task node_classification --model gcn --dataset cora --checkpoint <model_path> --inference
    则模型的预测结果会被保存在 gcn_cora.pred, 可以通过 torch.load读取

对于无监督的情况,每次训练得到的embedding保存在./embedding下,可以通过np.load读取,然后您可以训练一个 linear classifier 然后根据个人需要得到分类结果

from cogdl.

huihuijiangqiang avatar huihuijiangqiang commented on August 25, 2024

非常感谢

from cogdl.

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.