热线电话:13121318867

登录
2020-08-27 阅读量: 1330
主成分分析保留成分(变量)设置

PCA(n_components=0.7,svd_solver = ’full’)

加上参数svd_solver = ’full’

如果n_components是小数位,代表留下参数的百分比, 如0.7 代表保留70%的变量

如果n_components是整数位,代表留下几个变量,如2 代表留下2个变量


38.5549
0
关注作者
收藏
评论(0)

发表评论

暂无数据