LibRecommender icon indicating copy to clipboard operation
LibRecommender copied to clipboard

About when using DatasetPure.build_trainset

Open kyorisann opened this issue 1 year ago • 1 comments

HI! I am trying to use the data from movie rens. The algorithm is NFC_neural_collaborative_filtering. When "DatasetPure.build_trainset" is used to split the data during training, Is the data of user and item encoded? If so, when looking at the original data of user and item after the prediction, is it correct to map the original ID from "data_info.user2id"? Is this correct?

kyorisann avatar Jun 27 '24 08:06 kyorisann

Yes, DatasetPure.build_trainset will encode the data. The predict function will convert the original user and item internally, so you do not need to map it by yourself.

massquantity avatar Jun 28 '24 04:06 massquantity