RE: How can I retrieve item-pair after calculating similarity using RowMatrix

2015-04-26 Thread Eric Zheng
Yes, you are totally right, I have mistaken the meaning of the method, and it works out perfectly as I construct it as the transpose. Really appreciate your help, thanks! Date: Sat, 25 Apr 2015 20:57:04 -0700 Subject: Re: How can I retrieve item-pair after calculating similarity using

Re: How can I retrieve item-pair after calculating similarity using RowMatrix

2015-04-25 Thread Joseph Bradley
It looks like your code is making 1 Row per item, which means that columnSimilarities will compute similarities between users. If you transpose the matrix (or construct it as the transpose), then columnSimilarities should do what you want, and it will return meaningful indices. Joseph On Fri,