Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error about the data type #15

Open
chenghan710 opened this issue Jul 27, 2023 · 11 comments
Open

Error about the data type #15

chenghan710 opened this issue Jul 27, 2023 · 11 comments

Comments

@chenghan710
Copy link

chenghan710 commented Jul 27, 2023

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 ?

@FateMurphy
Copy link
Owner

(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

@chenghan710 chenghan710 reopened this Aug 1, 2023
@chenghan710
Copy link
Author

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?

@FateMurphy
Copy link
Owner

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

@chenghan710
Copy link
Author

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

@FateMurphy
Copy link
Owner

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.

@chenghan710
Copy link
Author

The error still exist

@chenghan710
Copy link
Author

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?

@FateMurphy
Copy link
Owner

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

@chenghan710
Copy link
Author

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

@FateMurphy
Copy link
Owner

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.

@chenghan710
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants