Code Monkey home page Code Monkey logo

Comments (6)

oguiza avatar oguiza commented on May 13, 2024

Hi @free-soellingeraj,

I've looked at the error but it's a bit difficult to say exactly what it is without some additional data.
I cannot comment on the first part to get the X. It seems like a complicated process, but that is data preparation. In the end, if you are going to use SlidingWindow you need to prepare a pandas df with the required columns, in the format that you want, and without 'nan' values.
The important things I'd need to know are:

  1. Could you please use check_data(X1, y1, splits1) and print out the output?
  2. I'd also need you to create a batch and print out the following:
xb, yb = first(dls.train)
print(xb, yb)
print(xb.shape, yb.shape)

from tsai.

free-soellingeraj avatar free-soellingeraj commented on May 13, 2024

from tsai.

oguiza avatar oguiza commented on May 13, 2024

Great, thanks.
timesteps cannot be 1 as that means you don't have any sequences, just scalars. In your case, timesteps are determined by your window_len hyperparameter in SlidingWindow. You need to set that to the appropriate number depending on your task.

from tsai.

free-soellingeraj avatar free-soellingeraj commented on May 13, 2024

from tsai.

oguiza avatar oguiza commented on May 13, 2024

It’s an extreme case indeed. And you want be able to use any of the tsai models as they require time series/ sequences.
If you are trying to predict a value from another value you can use any of the sklearn models.
I have no idea what type of problem you are trying to tackle, but it makes sense to use different window lengths to really understand how much history is required to generate a good forecast. I don’t think there are good rules of thumb to define the window length, although you want yo capture seasonality if present. It depends on the task.
But what you can do to check that your data is well prepared is to set the window length to 30 for example, and then try to train a model.

from tsai.

free-soellingeraj avatar free-soellingeraj commented on May 13, 2024

from tsai.

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.