Giter Club home page Giter Club logo

Comments (5)

pennfranc avatar pennfranc commented on September 17, 2024 1

Hi akshayi1, thanks a lot for this detailed issue description!
You hit the nail on the head regarding the reason for this bug: The frequency was not passed to the ScalerWrapper.inverse_transform function. We just addressed this problem in PR #143 . I tested it on your code snipped and it appears to solve this issue. We also released this patch to PyPi, so you should be able to install it like this:

pip install u8darts

Please let us know if this solves your problem!

from darts.

pennfranc avatar pennfranc commented on September 17, 2024 1

Glad to hear it worked!

  1. For longer time series, we use pandas.DatetimeIndex.inferred_freq to automatically determine the frequency. This only works for DatetimeIndex objects with a length of at least 3. So when creating a new TimeSeries instance, cases with a length shorter than 3 are handled differently. Also, we decided to warn the user when such a time series is created since it represents somewhat of an edge case. I'm sure there is still a lot of potential to improve the current approach, but this is the current setup :)
  2. Your approach looks good to me! Please note that even though you're only making a single prediction, that does not necessarily mean OUTPUT_LEN has to be set to 1 for the RNNModel. Sometimes it can still useful to try a higher number since the model might learn more general trends. You could also try enhancing your univariate time series by a datetime attribute series and make it multivariate (some very basic examples: https://github.com/unit8co/darts/blob/master/examples/multivariate-examples.ipynb). Other than that, I suggest trying out our other models too, you might find one with a better fit. To find the right hyperparameters for simpler models, you can try using our backtest_gridsearch function. To get a quick overview of the performance of simpler models, our explore_models function might be interesting too (although this one is a bit experimental). But please keep in mind I am not an expert in data science.

Thanks for all your feedback!

from darts.

akshayi1 avatar akshayi1 commented on September 17, 2024

That works! :) Thank you so much for the quick turnaround :) Would you please be able to tell me two things?

  1. Why is 3 the minimum required series length? Like, where does that requirement stem from?
  2. As a general guidance, can you please tell me if I'm on the right path as far as getting the one single prediction is concerned?

I'd highly appreciate your feedback, and am looking forward to using darts. Thank you again for creating this package :)

from darts.

akshayi1 avatar akshayi1 commented on September 17, 2024

That makes the two of us then :P I've been a career data engineer, only just getting exposure to data science/ML. Thank you for the amazing feedback and the guidance. If possible, it'd be good to document the reason in the official documentation, as I'm sure I won't be the only one with this doubt.

Regarding your note about OUTPUT_LEN, what is the true purpose of that, if I can swap it for higher numbers, even if I want only a single prediction? Also, I don't want to hijack a bug thread to have a conversation about this, so if there's a different place we can discuss, please let me know and I'd be happy to move it there :)

Thanks again!

from darts.

pennfranc avatar pennfranc commented on September 17, 2024

Yeah, good point about the documentation, thanks! And yes, I think I should close this issue now. Feel free to also open an issue with the tag 'question' as well, or reach out to us at this address: [email protected]. Again, thanks for all the feedback!

from darts.

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.