MovielensDataset
class. This class implements the PyTorch dataset interface, allowing our custom data preparation logic to be easily integrated into standard data loading and training routines.
We load all user ratings from the source CSV, organize by user, and split temporally into a “train” and “test” set