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
170 stars 38 forks source link

Time encoding in NYC.npy #35

Closed eoameen closed 3 weeks ago

eoameen commented 3 months ago

Hi again,

I read #8 but I'm still not sure how the time is encoded into an integer from a timestamp. Could you elaborate?

Background: I'm trying to run your algorithm on my own pre-processed data (Using load.py) and I'm not sure how to encode check-in time as you did.

Thank you in advance

yingtaoluo commented 3 months ago

Yes, basically they record in seconds, and I map them into minutes. You can also try to map them into hours. So time is an integer from the beginning if you directly just map the absolute time to seconds.