Closed koheiw closed 5 years ago
We can also add an argument drop0
that works like Matrix::drop0()
.
A drop0 argument could work. Only think to consider is what to do if values can be negative (or aren't there any similarity measures in use with negative values?)
If the values have only a few non-zero values, top-n values include zeros. For example, the fifth largest value in
c(0, 0, 0.5, 0.9, 0, 0, 0, 0.1)
is zero. We should use bothmin_simil = 0.1
along withrank = 5
to exclude zeros.