in sourcecode/scoring/matrix_factorization/pseudo_raters.py [0:0]
def _create_extreme_ratings(self):
self.extremeRatingsToAddWithoutNotes = []
self.extremeRatingsToAddWithoutNotes.append(
{
c.internalRaterInterceptKey: None,
c.internalRaterFactor1Key: None,
c.helpfulNumKey: None,
}
)
for extremeRater in self.extremeRaters:
extremeRater[c.raterParticipantIdKey] = str(extremeRater[c.raterParticipantIdKey])
# Since LCB is turned off, don't waste compute on not-helpful pseudoratings.
for helpfulNum in [1.0]: # Only helpful ratings
extremeRater[c.helpfulNumKey] = helpfulNum
self.extremeRatingsToAddWithoutNotes.append(extremeRater.copy())