Skip to content

Commit b4371fa

Browse files
committed
Change input type of pca.fit_transform to ndarray
1 parent 14a18ef commit b4371fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kb_python/report/report_matrix.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"sc.pp.normalize_total(adata, target_sum=1e4)\n",
159159
"sc.pp.log1p(adata)\n",
160160
"pca = PCA(n_components=10)\n",
161-
"pc = pca.fit_transform(adata.X.todense())"
161+
"pc = pca.fit_transform(adata.X.toarray())"
162162
]
163163
},
164164
{

0 commit comments

Comments
 (0)