Git Product home page Git Product logo

Comments (1)

zhangxuying1004 avatar zhangxuying1004 commented on May 25, 2024

非常高兴看到您出色的工作,给我带来了很大帮助。在测试阶段我遇到了一个问题,在训练阶段,预训练语言模型通过融合所有前文来预测下一个单词,但是在测试中模型似乎只能通过上一步的一个单词来预测,不知道是不是我的理解有误,如果确实是这样,这种测试方法是否会降低影最终的效果?

您好,抱歉哈,我前段时间在考英语,没有及时回复。关于您的问题,“在测试中模型似乎只能通过上一步的一个单词来预测”,这句话理解有偏差,测试阶段确实是一个单词一个单词地预测,但是在预测每一个单词时,使用的都是已生成的所有前文信息,而不是只有上一个单词的信息,这一点Transformer与RNN都是一样的逻辑,您可以再看一下测试阶段的代码。

from rstnet.

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.