Comments (4)
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.
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.
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.
Great thank you very much for the clarification, i will do that adjustment !
from tcn.
Related Issues (20)
- 函数调用问题
- LSTM and RNN used and issues of compatibility HOT 1
- issue about Input of TCN HOT 1
- ModuleNotFoundError: No module named 'tcn' HOT 2
- Clarification on figure 3(a) HOT 4
- Training on variable-length sequences HOT 1
- copy memory questions
- why raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
- seq2seq
- How should I choose correct layers number?
- How to save model?
- Code Question about: input the final conv-layer output to the linear layer
- What is the accuracy supposed to be for the MNIST problem?
- Is TCN suitable for spatio-temporal data? HOT 7
- why?
- Correlate .mat files with songs in Nottingham dataset
- Zero padding - possibly incorrect behavior? HOT 1
- DDP training with TCN Model
- do you have code examples for multivariate time series
- loss=nan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcn.