Skip to content

Commit

Permalink
remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
mumichae committed Dec 10, 2024
1 parent 7cd7848 commit 6123cf1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scib/metrics/pcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pandas as pd
import scanpy as sc
from scipy import sparse
from tqdm import tqdm

from ..utils import check_adata, check_batch

Expand Down Expand Up @@ -324,13 +323,6 @@ def linreg_multiple_np(X_pca, covariate, n_jobs=None):
"""
:param n_jobs: Number of threads ignored
"""
r2 = []
n_comps = X_pca.shape[1]
for i in tqdm(range(n_comps), total=n_comps):
r2_score = linreg_np(X=covariate, y=X_pca[:, [i]])
r2.append(r2_score)
return r2

X = covariate
Y = X_pca

Expand Down

0 comments on commit 6123cf1

Please sign in to comment.