Closed arthurfortes closed 6 years ago
@ArthurFortes I am taking this up.
You can use something like:
self.su_matrix = self.su_matrix.max() - self.su_matrix
Considering this is similarity
, I think it will better to keep it in 0-1 range, thus divide the result by max like self.su_matrix = (self.su_matrix.max() - self.su_matrix)/self.su_matrix.max()
. What's your take on this?
It is an interesting and valid observation. If implemented, leave a comment in the code to make users aware. =)
Thx for the contribution. =)
Now, only item recommendation is missing =)
Oh I thought it was only in rating prediction like you said. I'll send in another PR.
For both approaches (rating prediction and item recommendation) change the value 1 for the maximum value in the distance matrix.
|Bug info: For measures that don't have the range (0-1) the values after transformation will be wrong.