Closed amirabbasasadi closed 3 years ago
This is a great idea!
Can you make a pull request so your contribution is registered?
Before doing so can you validate that the two operations are equivalent in the non-zero cases?
Thank you,
Sure, I'll create a pull request.
If all of the elements of matrix T
are positive, then the two operations are equivalent. In the case of a matrix containing some negative elements, the result is different. However, since the T
is a transition matrix, It wouldn't be a problem to assume the matrix elements are positive.
Hi, sometimes a division by zero error happens when using the Propagation kernel. It seems that's because of normalizing the rows of the transition matrix in the following line:
when I replaced the above line by sklearn normalization function, the problem was solved and div by zero didn't happen: