Comments (5)
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.
Glad to hear it worked!
- For longer time series, we use
pandas.DatetimeIndex.inferred_freq
to automatically determine the frequency. This only works forDatetimeIndex
objects with a length of at least 3. So when creating a newTimeSeries
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 :) - 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 theRNNModel
. 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.
That works! :) Thank you so much for the quick turnaround :) Would you please be able to tell me two things?
- Why is 3 the minimum required series length? Like, where does that requirement stem from?
- 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.
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.
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)
- Question of validation data length and how samples are extracted from the validation dataset HOT 2
- [QUESTION] Behavior of TFT's .predict() method HOT 2
- [BUG]When the time_col parameter in TimeSeries.from_group_dataframe contains integers, it is still converted to a DatetimeIndex HOT 1
- [QUESTION] Simple question regarding backtest() in Darts. HOT 2
- Confused about saving checkpoint, loading and predicting HOT 1
- ElasticNet Regression Stopped Working
- Why can't we use LocalForecastingModel for Anomaly Detection? HOT 1
- [FEAT] Add tsmixer-basic HOT 1
- [Question] Explanation needed on input and output_chunk_length HOT 6
- Ability to add regressors to a Prophet model in Python HOT 1
- [BUG] TimeSeries.append and prepend with empty array produces an unhelpful error message HOT 1
- [BUG] TFTModel predicts nan values when MapeLoss function is used HOT 3
- Processes are terminated in multi-GPU setting when using multiple models and seeds HOT 3
- [QUESTION] How to make prediction with XGBModel when trained on multiple time series? HOT 1
- [BUG] Time index name is lost after using prepend_values HOT 3
- [BUG] Quantiles/samples are wrong when using enable_optimization=True (default!) HOT 5
- [BUG] dataloader_kwargs.num_workers exceptions during fit() HOT 2
- How to use of dataloader_kwargs in fit() to set 'drop_last' to True ? HOT 2
- Compute multiple quantiles for Metrics
- How does DARTS deal with missing values? HOT 1
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 darts.