I'm using surprise to calculat the RMSE
trainset= pd.read_csv('drive/MyDrive/trainrating.csv')
testset = pd.read_csv('drive/MyDrive/testrating.csv')
algo = SVD(n_factors=factors, n_epochs=epochs, lr_all=lr_value, reg_all=reg_value)
predictions = algo.fit(trainset).test(testset)
accuracy.rmse(predictions)
and I get this error:
5139 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5140 return self[name]
-> 5141 return object.__getattribute__(self, name)
5142
5143 def __setattr__(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'global_mean'