Giter VIP home page Giter VIP logo

Comments (4)

jerrybai1995 avatar jerrybai1995 commented on September 17, 2024

If you are referring to the language modeling tasks, then no, it wouldn't be a problem, because we enumerate the sequences by validseqlen length as well (see https://github.com/locuslab/TCN/blob/master/TCN/char_cnn/char_cnn_test.py#L92), which means we do evaluate the entire dataset. We basically are using a "shifted window" scheme:

Iteration 1: [---{------ L ---------}]
Iteration 2: .................................[---{------ L ---------}]
Iteration 3: ..................................................................[---{------ L ---------}]

where "{...}" contains the validseqlen elements that absorb enough history information and are used to compute the loss, and "[...]" contains the sequence fed into TCN. L is the sequence length. Not sure if the "illustration" above helps; let me know if you want some further clarifications :-)

from tcn.

mok33 avatar mok33 commented on September 17, 2024

Hi thanks for the quick answer, thanks for the illustration, I understand clearly now :D
So like you showed in the example above, only the very first (seqlen - validseqlen) of the dataset are not evaluated ?

from tcn.

jerrybai1995 avatar jerrybai1995 commented on September 17, 2024

That is correct. You can also evaluate them (i.e., evaluate the entire first sequence, and use the validseqlen for the rest of the sequences), but it probably wouldn't affect the performance (perplexity or bpc) because it's only a very small portion of the dataset.

from tcn.

mok33 avatar mok33 commented on September 17, 2024

Great thank you very much for the clarification, i will do that adjustment !

from tcn.

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.