Closed m-janyell0w closed 1 year ago
Hey @m-janyell0w, thanks for the detailed report.
With respect to the error of the time column, you need to set the frequency in the constructor. For example:
mlf = MLForecast(
freq='D', # this would mean daily frequency
models=models,
target_transforms=[Differences([1])],
)
About the CV error, you probably have gaps in your series. For example, suppose you have daily series and for one of your series the data jumps from 2023-07-09 to 2023-07-11 (it skips 2023-07-10). In this case when building the CV results it will fail because one period will be missing from the actuals.
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one.
Hello team,
I really appreciate the work that you do, I wish I would have found this library earlier :-D. Anyways, I am following this tutorial to try and create forecasts for a multivariate forecasting task. My dataset consists of the date column 'ds', 'unique_id', the target 'y', some lags 'y_lag_N' and , multiple regressor column of type float. I can not share the data due to confidentiality, but here is what my code looks like (where dataset_train is the before described training dataframe):
This results in:
Btw, converting the datestamp column to integer was needed or else I got the error: "TypeError: Addition/subtraction of integers and integer-arrays with DatetimeArray is no longer supported. Instead of adding/subtracting
n
, usen * obj.freq
"I am working in an anaconda environment using Python 3.9.16 on Windows 10. I use following packages mlforecast 0.9.0 statsforecast 1.5.0 pandas 2.0.1 scikit-learn 1.2.2
Any advice on what could be the problem here is highly appreciated!
Cheers, Micha