您需要识别数据集中具有多个观察值的唯一项。您得到的错误意味着您的数据集中的所有项目都没有超过 1 个观察值。为了更好地理解这个数据集:
2014-10-30 18:00:00, 144.2786069651745, client_12
2014-10-30 19:00:00, 139.30348258706476, client_12
2014-10-30 20:00:00, 133.29187396351574, client_12
2014-10-30 21:00:00, 83.95522388059702, client_12
2014-10-30 22:00:00, 60.116086235489256, client_12
2014-10-30 23:00:00, 56.17744610281925, client_12
2014-01-01 01:00:00, 56.07302533532045, client_10
2014-01-01 02:00:00, 48.435171385991076, client_10
2014-01-01 03:00:00, 43.21907600596124, client_10
2014-01-01 04:00:00, 39.1207153502235, client_10
2014-01-01 05:00:00, 37.81669150521605, client_10
2014-01-01 06:00:00, 34.836065573770455, client_10
2014-01-01 07:00:00, 34.6497764530551, client_10
2014-01-01 08:00:00, 30.737704918032748, client_10
2014-01-01 09:00:00, 27.1982116244411, client_10
可以看到有三个字段,timestamp、target和item。项目即客户必须在一段时间内记录多个目标值观察。
要修复错误,您需要识别项目和目标值。希望这可以帮助。