We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd73658 commit a010211Copy full SHA for a010211
graphtools/graphs.py
@@ -942,7 +942,7 @@ def _weight_knn(self, sample_size=None):
942
elif self.adaptive_k == 'sqrt':
943
# the samples are sqrt'd first, then smallest has k
944
knn_weight = np.sqrt(self.n_cells / np.min(self.n_cells))
945
- elif self.adaptive_k == 'none':
+ elif self.adaptive_k is None:
946
knn_weight = np.repeat(1, len(self.n_cells))
947
weighted_knn = np.round(self.knn * knn_weight).astype(np.int32)
948
if len(weighted_knn) == 1:
0 commit comments