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

How to draw truth and prediction value curves? #17

Open
zwd2016 opened this issue Dec 31, 2018 · 0 comments
Open

How to draw truth and prediction value curves? #17

zwd2016 opened this issue Dec 31, 2018 · 0 comments
Assignees

Comments

@zwd2016
Copy link

zwd2016 commented Dec 31, 2018

Hi liyaguang,
I looked at the evaluate function in dcrnn_supervisor.py, where the real and predicted values are regularized. Can I print the image before line 271?

y_truth = self._data['y_test'][:, :, :, 0] y_pred = y_preds[:y_truth.shape[0], :, :, 0] pyplot.title('test') pyplot.xlabel('Time range (min)') pyplot.ylabel(' Speed (km/h)') pyplot.plot(y_truth[:],label='true') pyplot.plot(y_pred[:],'r--',label='Prediction-DCRNN') pyplot.legend() pyplot.savefig('Figure-test.png', dpi=300) pyplot.show()
best wishes!

@liyaguang liyaguang self-assigned this Jan 7, 2019
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