CEEMDAN_LSTM icon indicating copy to clipboard operation
CEEMDAN_LSTM copied to clipboard

Error about the data type

Open chenghan710 opened this issue 2 years ago • 11 comments

I'm trying to use CEEMDAN_LSTM to predict time series image

the code report the AttributeError: Can only use .str accessor with string values!

How can I fix this problem

image

And one more question, can I predict more than one out-of-sample value by CEEMDAN_LSTM ?

chenghan710 avatar Jul 27 '23 08:07 chenghan710

(1) For problem 1: Can only use .str accessor with string values! A: you can try to set the encoding='utf-8' (2) Predict more than one out-of-sample value by CEEMDAN_LSTM A: set DAY_AHEAD=2 or larger, 1 means one-day-ahead

FateMurphy avatar Aug 01 '23 03:08 FateMurphy

Thanks for replying, the first question was solved, for the problem(2), the two output is I set DAY_AHEAD as 2, 3 image It seems only predict for one day, here is my code image Is there something wrong?

chenghan710 avatar Aug 01 '23 06:08 chenghan710

For multi-step prediction, you can try the rolling forecasting method.

FateMurphy avatar Aug 02 '23 04:08 FateMurphy

image I tried the rolling forecasting method, the error was reported image I've update pandas to the newest version

chenghan710 avatar Aug 04 '23 10:08 chenghan710

You can try to set REDECOM_LIST = None firstly. If the error still exists, please let me know and I will fix this error later.

FateMurphy avatar Aug 09 '23 14:08 FateMurphy

The error still exist

chenghan710 avatar Aug 09 '23 18:08 chenghan710

Sorry, here is another question

I used multiple_keras_predict and set run time=20, and NEXT_DAY=TRUE image

Is this mean that it will predict the value of 20 days in the future?

e.g. I run this code at 9/1, it will predict the value until 9/21?

chenghan710 avatar Aug 17 '23 04:08 chenghan710

It means that the code forecast the last data point, eg. 9/1, 20 times by respective method.

FateMurphy avatar Aug 17 '23 04:08 FateMurphy

So if I want to predict the value of 20 days in the future, it can only use rolling forecasting method?

chenghan710 avatar Aug 17 '23 04:08 chenghan710

In this code, yes. In fact, the rolling forecasting method means running one-day-ahead forecasting multiple times with changing the dataset. Or, you can find other codes directly to make sequence forecasting.

FateMurphy avatar Aug 17 '23 05:08 FateMurphy

It is OK for me to running one-day-ahead forecasting multiple times with changing the dataset, but I still have the same error for running rolling forecasting method

chenghan710 avatar Aug 17 '23 05:08 chenghan710