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

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

Open
plinn756 opened this issue Jun 10, 2023 · 5 comments

Comments

@plinn756
Copy link

当我运行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
Copy link
Owner

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

@plinn756
Copy link
Author

plinn756 commented Jun 14, 2023

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

图片3
图片4
图片5

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

@FateMurphy
Copy link
Owner

FateMurphy commented Jun 14, 2023

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

@plinn756
Copy link
Author

代码有较长时间没维护,只需要在 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
Copy link
Owner

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

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