Giter Club home page Giter Club logo

Comments (2)

hzwy3c avatar hzwy3c commented on June 16, 2024

您好!

  1. 具体是如何实现的:args.use_wight主要是控制subsampling_weight的计算,subsampling_weight的计算方式是对一个triple累计它的实体和关系对出现的次数,然后对这个次数做倒数并开根号得到对应triple的subsampling_weight,最后在loss中作为权重。
  2. 目的是什么:可以看到,与这个triple有关的数据出现的频率越高,subsampling_weight越小,乘上subsampling_weight后针对这个triple的loss所占的比例就越小。它的目的是为了减弱低频triple与高频triple数据间存在的不平衡现象,因为某些triple的实体和关系对可能出现的频率很高,而另一些triple的实体和关系对出现的频率很低,计算score时高频的影响会很大,存在不平衡的现象,但是低频的信息也应该被模型很好地学习。use_weight是一个常用的trick,经过测试在一些模型上可以显著提高效果。
  3. 有没有相关的论文介绍:它的方法来源于Word2vec中的Subsampling,对Subsampling方法的直观理解可以参考这篇博客

from neuralkg.

FujiwaraKeine avatar FujiwaraKeine commented on June 16, 2024

您提供的信息对我很有帮助,谢谢您的回复!

from neuralkg.

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.