Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazhao97 authored Nov 19, 2021
1 parent 17e8c97 commit 7483cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def calculate_mixing_metric(data, meta, methods, k=5, max_k=300, subsample=True)
subsample_idx = np.random.choice(data.shape[0], 50000, replace=False)
data = data[subsample_idx]
meta = meta.iloc[subsample_idx]
meta.index = np.arange(len(subsample_idx))
lowdim = data

nbrs = NearestNeighbors(n_neighbors=max_k, algorithm='kd_tree').fit(lowdim)
Expand Down

0 comments on commit 7483cb6

Please sign in to comment.