Skip to content

Commit

Permalink
fix pca
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjia2019 committed Sep 5, 2023
1 parent 272fd9e commit 0c5d595
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 1 deletion.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 第6课_降维算法在商品分析中的应用/PCA.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"\n",
"# 指定需要进行降维的特征\n",
"features = data[['销售增长率', '市场占有率', \n",
" '渠道成熟度', '用户好评率']]\n",
" '渠道成熟度', '用户好评度']]\n",
"\n",
"# 用PCA算法进行降维,并指定最终维度为2,便于可视化\n",
"pca = PCA(n_components=2)\n",
Expand Down

0 comments on commit 0c5d595

Please sign in to comment.