cheungdaven / DeepRec

An Open-source Toolkit for Deep Learning based Recommendation with Tensorflow.
GNU General Public License v3.0
1.13k stars 294 forks source link

Hi, when I see Neumf load_data_ranking.py, I have question #4

Closed 1mrliu closed 5 years ago

1mrliu commented 5 years ago
for line in test_data.itertuples():
    test_row.append(line[1] - 1)
    test_col.append(line[2] - 1)
    test_rating.append(1)

Why line[1] and line[2] add the -1?

cheungdaven commented 5 years ago

@1mrliu to make sure the index starts from 0