随手记
记录实验过程中用到的matlab命令,特别是Tensor Toolbox里面的一些命令:
- 查看文档
>> doc sptensor %查看sparse tensor相关函数
- 下载数据集
Movielens-1
只选用压缩包里面的u.data,里面记录的是943个人对1682部电影在某个时间的评分,评分是1-5分,时间戳是unix seconds since 1/1/1970 UTC
>> m=load('u.data'); %加载数据集到matlab
- 处理数据
将时间分为四个时间段,变为数值1 2 3 4 对应,morning (05:00-11:59), afternoon (12:00-17:59), night (18:00-23:59) and late night (00:00-04:59).