yingtaoluo / Spatial-Temporal-Attention-Network-for-POI-Recommendation

Codes for a WWW'21 Paper. POI recommender system for location/trajectory prediction.
https://doi.org/10.1145/3442381.3449998
164 stars 39 forks source link

Question about "traj[:, :, 2]" #7

Closed pshijie closed 3 years ago

pshijie commented 3 years ago

Hi,I'm very interested in your work. But I have question about this line of code:"(traj[:, :, 2]-1) % hours + 1". Is this variable in seconds or hours? Thanks!

yingtaoluo commented 3 years ago

It will help me greatly if you can be more precise about which line. If you mean line 104 in layer.py, then this is in hours. I explain in my paper that we divide time into 24*7 hours to consider weekly periodicity.

On Mon, Apr 26, 2021 at 7:42 PM pshijie @.***> wrote:

Hi,I'm very interested in your work. But I have question about this line of code:"(traj[:, :, 2]-1) % hours + 1". Is this variable in seconds or hours? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yingtaoluo/Spatial-Temporal-Attention-Network-for-POI-Recommendation/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5PX4ZK7ACBUKCPOPZO5NLTKVGRHANCNFSM43SWW5TQ .

pshijie commented 3 years ago

Thanks for the clarification.