From 6123cf174ef489c6f5064b5fba3c39a47a98c34f Mon Sep 17 00:00:00 2001 From: Michaela Mueller Date: Wed, 11 Dec 2024 00:51:35 +0100 Subject: [PATCH] remove testing code --- scib/metrics/pcr.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scib/metrics/pcr.py b/scib/metrics/pcr.py index 058e8140..d8745ef3 100644 --- a/scib/metrics/pcr.py +++ b/scib/metrics/pcr.py @@ -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 @@ -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