Error while using GridSearchCv : 'Trainset' object has no ...
github.com › NicolasHug › SurpriseJul 02, 2018 · Usage of GridSearchCV is resulting in 'Trainset' object has no attribute 'raw_ratings' error. from surprise.model_selection import GridSearchCV reader = Reader (rating_scale= (1, 5)) data = Dataset.load_from_df (df [ ['profile_id', 'content_id', 'rating']], reader) trainset, testset = train_test_split (data, test_size=.25, random_state=20) param_grid = { 'n_factors': [30], 'n_epochs': [5, 10, 20], 'lr_all': [0.002, 0.006, 0.018, 0.054, 0.10, 0.15] } algo = GridSearchCV (SVDpp, param_grid, ...