#465·Surprise

原始 ID 与内部 ID 的映射错误

作者: benhaf创建于 2023年3月27日更新于 2023年3月28日

Description

When the dataset contains more than 25000 rows, the mapping of the raw IDs of the users to the internal IDs is not correct. I tried to read the ratings from a file and from a dataframe, but it always gives a wrong mapping of the user IDs. I tested several datasets. In the code below, after saving the training set with the internal IDs to SupriseTrainingSet.csv, I compare the file Train.txt to SupriseTrainingSet.csv.

内容来源: NicolasHug/Surprise