We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245f5e0 commit e741a36Copy full SHA for e741a36
dadapy/_utils/metric_comparisons.py
@@ -46,7 +46,7 @@ def _return_ranks(dist_indices_1, dist_indices_2, rng, k=1):
46
47
for k_neighbor in range(k):
48
if len(wr[k_neighbor]) == 0:
49
- conditional_ranks[i, k_neighbor] = rng.integers(maxk_2, size = N)
+ conditional_ranks[i, k_neighbor] = rng.integers(low = maxk_2, high = N, size = 1)
50
else:
51
conditional_ranks[i, k_neighbor] = wr[k_neighbor][0]
52
0 commit comments