Giter Site home page Giter Site logo

Comments (5)

JyiHUO avatar JyiHUO commented on June 6, 2024 1

如果truncating='post'是取序列的前部分数据,比如说前50个,那么翻转就是合法的。

from deepmatch.

Eachan35 avatar Eachan35 commented on June 6, 2024

我也想问这个问题,既然gen_data_set里面把train_seq反转了,那为什么gen_model_input里面对其使用pad_sequences函数进行填充时,不加上参数truncating='post'让长度>50的seq截掉后面的的数据?造成长度>50的seq全部是一样的序列

from deepmatch.

JyiHUO avatar JyiHUO commented on June 6, 2024

如果不翻转的话,使用原来的pad_sequences是没有问题的,翻转了就有问题了

from deepmatch.

Eachan35 avatar Eachan35 commented on June 6, 2024

如果不翻转的话,是可以这样写的

应该是前面[::-1]翻转的话,后面加参数是正确?所以这个地方是bug对吧--->去掉[::-1]翻转 或 加参数truncating='post'

from deepmatch.

shenweichen avatar shenweichen commented on June 6, 2024

已经修复了,感谢!

from deepmatch.

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.