'Adds a tuple <real rating, pred. rating>
:param rating: a real rating value (the ground truth)
:param rating_pred: the predicted rating'

def add(self, rating, rating_pred):

    if ((rating is not nan) and (rating_pred is not nan)):
        self._ground_truth.append(rating)
        self._test.append(rating_pred)
