SpectralNet icon indicating copy to clipboard operation
SpectralNet copied to clipboard

Question about squared_distance fucntion

Open zhangfanmark opened this issue 7 years ago • 1 comments

Hi! First of all, thanks for providing this nice work!

While I am looking into the code, I found the squared_distance function is a little bit confusing. If Y is not provided (so Y = X), this function will do an option of X - X and then take the sum. So, isn't the return value zero?

https://github.com/KlugerLab/SpectralNet/blob/43b0fca784491f234489b860fc35832697ad20c2/src/core/costs.py#L11-L33

Another question about the number of clusters K, can I use a relatively larger number when my dataset contains about 1 million samples? For example, over 1000?

Thanks! Fan

zhangfanmark avatar Jan 09 '19 22:01 zhangfanmark

I guess you neglected line 25 : )

joshxin avatar Jan 30 '19 07:01 joshxin