Coder Social home page Coder Social logo

Comments (4)

kashif avatar kashif commented on June 15, 2024

opps i forgot to fix the readme... yes just use the input_size=19

from pytorch-ts.

vfdev-5 avatar vfdev-5 commented on June 15, 2024

@kashif thanks ! However, I do not get why input_size is not a hyperparameter and is constraint by something else ?

from pytorch-ts.

kashif avatar kashif commented on June 15, 2024

good question @vfdev-5 so the input_size is the size of the features which are then passed to the RNN for example. The feature size depends on the freq of the time series data (via lag features and time features), as well as on the possible static or time-dependent covariates of a dataset and finally on the user-defined possible embedding sizes from any possible categorical covariates... thus I found it easiest to just use the error message to get the right input size... another solution would be to get it from the final batches... but I hope that answers your question?

with respect to the RNN its hidden size is a hyperparameter and you can choose it as you like but there is some default value (which I forget)...

from pytorch-ts.

vfdev-5 avatar vfdev-5 commented on June 15, 2024

Thanks for a detailed answer @kashif !
Right, that's true that input_size for LSTM behind DeepAREstimator means the number of features: (batch_size, sequence_length, input_size), https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html

The feature size depends on the freq of the time series data (via lag features and time features), as well as on the possible static or time-dependent covariates of a dataset and finally on the user-defined possible embedding sizes from any possible categorical covariates... thus I found it easiest to just use the error message to get the right input size... another solution would be to get it from the final batches... but I hope that answers your question?

It would be nice to see somewhere a clear description on how these parameters are coupled together.

from pytorch-ts.

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.