【发布时间】:2019-10-19 20:05:12
【问题描述】:
我有用户位置数据集,需要根据之前的数据预测用户的下一个位置。我选择使用 lstm 进行预测,但坚持塑造数据。
lstm 数据的输入形状应该是什么?
Total number of rows: 53398560
Total number of columns: 4
Columns: User, Timestamp, slot, Location
Users count: 111247
slot : [0-95] Each slot is the 15 mins of the timestamp.
2014-01-18 00:00:00 ----- 0
2014-01-18 23:45:00 ----- 95
No of timestamps for each user = 480 (96 slots * 5 days)
Location: Random points for each user
以上数据的 Xtrain、Ytrain、Xtest、Ytest 是什么。 我需要根据 480 个时间戳来预测每个用户的下一个位置。
【问题讨论】:
-
你尝试了什么,错误是什么?
标签: python keras time-series lstm