andy-wyx commited on
Commit
8d47a67
·
1 Parent(s): b64ed04

update user guide font size

Browse files
Files changed (1) hide show
  1. closest_sample.py +1 -1
closest_sample.py CHANGED
@@ -39,7 +39,7 @@ def pca_distance(pca,sample,embedding,top_k):
39
  distances = np.linalg.norm(all - s, axis=1)
40
  sorted_indices = np.argsort(distances)
41
  filtered_indices = sorted_indices[sorted_indices<=2852]
42
- return filtered_indices[:top_k]
43
 
44
  def return_paths(argsorted,files):
45
  paths= []
 
39
  distances = np.linalg.norm(all - s, axis=1)
40
  sorted_indices = np.argsort(distances)
41
  filtered_indices = sorted_indices[sorted_indices<=2852]
42
+ return filtered_indices[:2]+filtered_indices[3:6]
43
 
44
  def return_paths(argsorted,files):
45
  paths= []