Closed pgonzalezb4 closed 1 year ago
Hi @pgonzalezb4, there is a difference in how you create the models. For XGBModel, you set the output_chunk_length
parameter. Can you try using the same for both models? Let us know if the issue still persists.
Hi @dennisbader! thank you, the problem disappeared after using output_chunk_length
parameter (why is that?), but now the problem that I have is the following:
ValueError: Unable to build any training samples of the target series at index 0 and the corresponding covariate series; There is no time step for which all required lags are available and are not NaN values.
This didn't appear before and I am using the same training data with the same amount of lags and I am making sure that all of my time series have at least 16 days of data (since I need 8 days for test dataset and 8 days of lags).
Hi @pgonzalezb4,
It was probably because the default value of output_chunk_length
was not well defined by darts, causing the error in the sanity checks verifying that the series contains enough values for a fit()
call.
Darts model are unaware of the frequency of your series, meaning that if the frequency of the series is 1D
, and you use freq="1h"
, the model will expect at least 24 values in the series (lags) as input and additional 192 values to be able to compare its first prediction of length output_chunk_length
. You will need to either resample the target series or find a way to import it with the proper frequency.
I tried reproducing your problem with darts 0.25.0 and it worked just fine for a series of length 600 (step=1
, IntegerIndexed) and freq=1h
.
I am going to close this for now, @pgonzalezb4 feel free to reopen if the problem persists.
Describe the bug Hi, I am using a RegressionModel() instance with a sklearn.GradientBoostingRegressor instance as underlying model for time series forecasting, the data I used to train with this model is the same that I am trying to train now, but I am getting this error:
As a side error, when I use xgboost model on the code snippet that you find below, it gives me the error
ValueError: Unable to build any training samples of the target series at index 0 and the corresponding covariate series; There is no time step for which all required lags are available and are not NaN values.
but I am using exactly the same time series with the same amount of lags as with gradient boosting which does not give me this error.I highly suspect this is an error with the numpy version or on the creation of lagged data but I can't figure it out.
To Reproduce
Expected behavior I simply expected the model to train on the data I have always used to train it with.
System (please complete the following information):
Additional context This didn't happen when I was using darts 0.21.0, this began to happen after updating to 0.23.0