Skip to content

Commit 959dcd0

Browse files
committed
.
1 parent 47078fd commit 959dcd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unsupervised.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ Alteratively, we can write a function to determine how much components we should
109109
pca = PCA(n_components = i).fit(X)
110110
sum_ = pca.explained_variance_ratio_
111111
# add all components explained variances
112-
percent = sum(sum_)*100
113-
print('{} components at {:.2f}% explained variance'.format(i, percent))
112+
percent = sum(sum_)
113+
print('{} components at {:.2f}% explained variance'.format(i, percent*100))
114114
if percent > threshold:
115115
break
116116

0 commit comments

Comments
 (0)