//rating = normalize(float(rating), self.rScale[-1], self.rScale[0])
//self.trainingData[i][2] = rating
// order the user
if not self.user.has_key(userName):
self.user[userName] = len(self.user)
self.id2user[self.user[userName]] = userName
// order the item
After Change
//rating = normalize(float(rating), self.rScale[-1], self.rScale[0])
//self.trainingData[i][2] = rating
// order the user
if userName not in self.user:
self.user[userName] = len(self.user)
self.id2user[self.user[userName]] = userName
// order the item