Skip to content

Commit

Permalink
revert pca
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 committed Nov 26, 2024
1 parent abe0ec6 commit 29509d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rapids_singlecell/preprocessing/_scrublet/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def pca(

self._counts_obs_norm = self._counts_obs_norm.astype(cp.float32)
self._counts_sim_norm = self._counts_sim_norm.astype(cp.float32)
pca = PCA(n_components=n_prin_comps, random_state=random_state).fit(
self._counts_obs_norm
)
X_obs = pca.transform(self._counts_obs_norm)
X_sim = pca.transform(self._counts_sim_norm)
X_obs = _sparse_to_dense(self._counts_obs_norm)

pca = PCA(n_components=n_prin_comps, random_state=random_state).fit(X_obs)
X_obs = pca.transform(X_obs)
X_sim = pca.transform(_sparse_to_dense(self._counts_sim_norm))
self.set_manifold(X_obs, X_sim)

0 comments on commit 29509d6

Please sign in to comment.