sparse_als_soft_impute.py 文件源码

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

项目:sparseMF 作者: jeh0753 项目源码 文件源码
def _svd(self, X, max_rank=None):
        if max_rank:
            # if we have a max rank then perform the faster randomized SVD
            return randomized_svd(
                X,
                max_rank,
                n_iter=self.n_power_iterations)
        else:
            # perform a full rank SVD using ARPACK
            return np.linalg.svd(
                X,
                full_matrices=False,
                compute_uv=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号