FateMurphy / CEEMDAN_LSTM

CEEMDAN_LSTM is a Python project for decomposition-integration forecasting models based on EMD methods and LSTM.
MIT License
205 stars 42 forks source link

When using data tensors as input to a model, you should specify the `steps_per_epoch` argument. #11

Open plinn756 opened 1 year ago

plinn756 commented 1 year ago

当我运行co_imf0_predict_raw, co_imf0_gru_evaluation, co_imf0_train_loss = kr.keras_predict(df_vmd_co_imf0)时,显示When using data tensors as input to a model, you should specify the steps_per_epoch argument.报错,请问是什么问题该怎么修改呢?非常感谢! 微信图片_20230610155945

FateMurphy commented 1 year ago

可能是tensorflow版本问题,建议使用2.5.0以上的版本试试

plinn756 commented 1 year ago

可能是tensorflow版本问题,建议使用2.5.0以上的版本试试

图片3 图片4 图片5

使用tensorflow2.5后这块代码报错如上,请问要怎么解决呢?感谢!!

FateMurphy commented 1 year ago

代码有较长时间没维护,只需要在 print('\n7.Predict Co-IMF0 by matrix-input GRU (ensemble method)') print('-------------------------------') 加上下面这行代码就行 df_vmd_co_imf0.name = 'co-imf0'

plinn756 commented 1 year ago

代码有较长时间没维护,只需要在 print('\n7.Predict Co-IMF0 by matrix-input GRU (ensemble method)') print('-------------------------------') 加上下面这行代码就行 df_vmd_co_imf0.name = 'co-imf0'

这个问题解决啦!感谢回复!!但是又出现了一个新的问题 我在cl.details_keras_predict(series)中的 2.CEEMDAN decompose报错 图片1 我现在的输入是 dataset = pd.read_csv('gz1.csv', header=0, index_col=['date'], parse_dates=['date']) series = pd.Series(dataset['close'].values, index=dataset.index) 请问这是什么问题呢?非常感谢!!

FateMurphy commented 1 year ago

前段时间我更新了代码,可以更新包再试试