Sklearn 주성분분석

1 개요[ | ]

sklearn 주성분분석
import numpy as np
from sklearn.decomposition import PCA
X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
pca = PCA(n_components=2)
pca.fit(X)

print( pca.explained_variance_ratio_ )
# [ 0.99244289  0.00755711]
print( pca.singular_values_ )  
# [ 6.30061232  0.54980396]

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}