Skip to content

Commit

Permalink
Change input type of pca.fit_transform to ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMMa committed Jul 25, 2023
1 parent 14a18ef commit b4371fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kb_python/report/report_matrix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"sc.pp.normalize_total(adata, target_sum=1e4)\n",
"sc.pp.log1p(adata)\n",
"pca = PCA(n_components=10)\n",
"pc = pca.fit_transform(adata.X.todense())"
"pc = pca.fit_transform(adata.X.toarray())"
]
},
{
Expand Down

0 comments on commit b4371fa

Please sign in to comment.