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

Using LSTM method in Python #222

Open
LZJ30 opened this issue Nov 13, 2020 · 0 comments
Open

Using LSTM method in Python #222

LZJ30 opened this issue Nov 13, 2020 · 0 comments

Comments

@LZJ30
Copy link

LZJ30 commented Nov 13, 2020

There are something wrong with my codes.
ValueError: non-broadcastable output operand with shape (2416,1) doesnt match the broadcast shape (2416,24)
How can I figure it out? Here is a short code where occurs mistake.

测试集输入模型进行预测

predicted_Traffic_flow = model.predict(x_test)

对预测数据还原---从(0,1)反归一化到原始范围

predicted_Traffic_flow = sc.inverse_transform(predicted_Traffic_flow)

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

1 participant