Giter VIP home page Giter VIP logo

咨询下大佬个问题,以监督学习的方式训练网络的时候,训练样本貌似也放进了同batch的不是附近的节点,看监督学习训练的损失是直接用激活函数得到logit后得到损失,这样是不是不太那啥?是不是应该只用正样本吧(监督方式训练的时候) about graphsage-pytorch HOT 1 OPEN

twjiang avatar twjiang commented on June 28, 2024
咨询下大佬个问题,以监督学习的方式训练网络的时候,训练样本貌似也放进了同batch的不是附近的节点,看监督学习训练的损失是直接用激活函数得到logit后得到损失,这样是不是不太那啥?是不是应该只用正样本吧(监督方式训练的时候)

from graphsage-pytorch.

Comments (1)

GiorgioPeng avatar GiorgioPeng commented on June 28, 2024

发表一下个人拙见:

  1. 为了便于计算采用了定长的均匀采样作为领域(也就是采集到正负样本都有可能)
  2. 论文中的3.2部分所述损失函数是由两部分加起来的(目的是使得邻域嵌入表示尽可能相近,非领域【应该也就是负样本点】表示尽可能远),前半部分是一个点与其正样本(也就是邻接节点)的相似度,后半部分是一个点与其负样本(非邻接节点)的相似度的相反数。
  3. 不同点的邻域点数量不同处理很麻烦(输入就变成一个变长序列了),作者说未来工作可以研究如何使用非均匀采样,如果只采集正样本的话就变成了你说的这种方式。

from graphsage-pytorch.

Related Issues (18)

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.