Graph-WaveNet icon indicating copy to clipboard operation
Graph-WaveNet copied to clipboard

Printing of results

Open annelorejp opened this issue 2 years ago • 4 comments

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 avatar Apr 20 '22 13:04 annelorejp

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

zowb avatar May 03 '22 14:05 zowb

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?

annelorejp avatar May 03 '22 14:05 annelorejp

Same question. What does 99 mean?

packer-c avatar Dec 11 '22 14:12 packer-c

oh, I knew that 99 represents 99th node.

packer-c avatar Dec 14 '22 15:12 packer-c