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

Printing of results #33

Open
annelorejp opened this issue Apr 20, 2022 · 4 comments
Open

Printing of results #33

annelorejp opened this issue Apr 20, 2022 · 4 comments

Comments

@annelorejp
Copy link

Hi,

Currently I'm working on the Graph-WaveNet code with my own dataset (predicting the amount of patients occupying a bed in a hospital).

There is one thing I don't fully understand from the code.

In this line of code (test.py line 100-104):
afbeelding

y12 = realy[:,99,11].cpu().detach().numpy()
yhat12 = scaler.inverse_transform(yhat[:,99,11]).cpu().detach().numpy()

y3 = realy[:,99,2].cpu().detach().numpy()
yhat3 = scaler.inverse_transform(yhat[:,99,2]).cpu().detach().numpy()

Can anyone explain to me what they are doing in this piece of code? And what the difference is between y12 and y3?

I really hope someone can help me! :)

Thanks in advance!

@annelorejp annelorejp changed the title Plotting of results Printing of results Apr 25, 2022
@zowb
Copy link

zowb commented May 3, 2022

It is the prediction at time step 3 and 12 respectively.

@annelorejp
Copy link
Author

Thanks for your reply!
So there is predicted based on the time steps before AND the training model which uses the training data?
OR
Are the predictions only based on the couple of time steps before?

@packer-c
Copy link

Same question.
What does 99 mean?

@packer-c
Copy link

oh, I knew that 99 represents 99th node.

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

3 participants