pca.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:MLAlgorithms 作者: rushter 项目源码 文件源码
def __init__(self, n_components, solver='svd'):
        """Principal component analysis (PCA) implementation.

        Transforms a dataset of possibly correlated values into n linearly
        uncorrelated components. The components are ordered such that the first
        has the largest possible variance and each following component as the
        largest possible variance given the previous components. This causes
        the early components to contain most of the variability in the dataset.

        Parameters
        ----------
        n_components : int
        solver : str, default 'svd'
            {'svd', 'eigen'}
        """
        self.solver = solver
        self.n_components = n_components
        self.components = None
        self.mean = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号