{"id":4194,"date":"2023-12-01T11:54:55","date_gmt":"2023-12-01T02:54:55","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=4194"},"modified":"2023-12-01T11:59:23","modified_gmt":"2023-12-01T02:59:23","slug":"pca","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/pca\/","title":{"rendered":"\u6b21\u5143\u524a\u6e1b\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01\u3010\u4e3b\u6210\u5206\u5206\u6790\u7de8\u3011"},"content":{"rendered":"\n<p>\u30c7\u30fc\u30bf\u5206\u6790\u306e\u524d\u51e6\u7406\u3068\u3057\u3066\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u6b21\u5143\u524a\u6e1b\u624b\u6cd5\u306e\u3072\u3068\u3064\u3067\u3042\u308b\u4e3b\u6210\u5206\u5206\u6790\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2>\u6b21\u5143\u524a\u6e1b\u3068\u306f\uff1f<\/h2>\n<p>\u6b21\u5143\u524a\u6e1b\u3068\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u7279\u5fb4\u91cf\u306e\u6570\u3084\u6b21\u5143\u3092\u524a\u6e1b\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u3053\u3068\u3067\u3059\u3002\u30e2\u30c7\u30eb\u4f5c\u6210\u306e\u524d\u51e6\u7406\u306e\u3072\u3068\u3064\u3068\u3057\u3066\u3088\u304f\u884c\u308f\u308c\u307e\u3059\u3002\u6b21\u5143\u524a\u6e1b\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u6b21\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\r\n<ol>\r\n\t<li><strong>\u7279\u5fb4\u91cf\u9078\u629e:<\/strong> \u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306b\u5bc4\u4e0e\u3057\u306a\u3044\u7279\u5fb4\u91cf\u3092\u7279\u5b9a\u3057\u3001\u3053\u308c\u3089\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u3001\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u3089\u308c\u307e\u3059\u3002<\/li>\r\n\t<li><strong>\u8a08\u7b97\u52b9\u7387\u306e\u5411\u4e0a:<\/strong> \u591a\u304f\u306e\u7279\u5fb4\u91cf\u304c\u3042\u308b\u5834\u5408\u3001\u8a08\u7b97\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5b9f\u884c\u304c\u9045\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u6b21\u5143\u524a\u6e1b\u306b\u3088\u308a\u8a08\u7b97\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/li>\r\n\t<li><strong>\u53ef\u8996\u5316:<\/strong> \u9ad8\u6b21\u5143\u306e\u30c7\u30fc\u30bf\u30922\u6b21\u5143\u307e\u305f\u306f3\u6b21\u5143\u306b\u524a\u6e1b\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u304c\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\r\n<\/ol>\r\n<p>\u6b21\u5143\u524a\u6e1b\u3068\u805e\u304f\u3068\u3001\u4e3b\u6210\u5206\u5206\u6790\uff08PCA\uff09\u3092\u601d\u3044\u6d6e\u304b\u3079\u308b\u65b9\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u6b21\u5143\u524a\u6e1b\u306e\u624b\u6cd5\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u5404\u624b\u6cd5\u306e\u7279\u6027\u3092\u7406\u89e3\u3057\u3066\u3001\u5206\u6790\u7528\u9014\u306b\u3042\u3063\u305f\u3082\u306e\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\r\n<ul style=\"list-style-type: circle\">\r\n\t<li>\u4e3b\u6210\u5206\u5206\u6790\uff08PCA\uff09<\/li>\r\n\t<li>\u72ec\u7acb\u4e3b\u6210\u5206\u5206\u6790\uff08ICA\uff09<\/li>\r\n\t<li>t-\u5206\u5e03\u578b\u78ba\u7387\u7684\u96a3\u63a5\u57cb\u3081\u8fbc\u307f\uff08t-SNE\uff09<\/li>\r\n\t<li>\u7dda\u5f62\u5224\u5225\u5206\u6790\uff08LDA\uff09<\/li>\r\n\t<li>\u975e\u8ca0\u5024\u884c\u5217\u56e0\u5b50\u5206\u89e3\uff08NMF)<\/li>\r\n\t<li>\u81ea\u5df1\u7b26\u53f7\u5316\u5668\uff08Autoencoder\uff09<\/li>\r\n<\/ul>\r\n<p>\u4eca\u56de\u306f\u3001\u4e3b\u6210\u5206\u5206\u6790\u306b\u3064\u3044\u3066\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\u4ed6\u306e\u624b\u6cd5\u306b\u3064\u3044\u3066\u3082\u3001\u307e\u305f\u5225\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<p><!-- notionvc: 2e0287a1-6c7d-4a1f-84ef-fcfd853d1d36 --><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><strong>\u6b21\u5143\u524a\u6e1b\u306e\u30a4\u30e1\u30fc\u30b8<\/strong><\/p>\r\n<p>\u300c\u5e73\u9762\u4e0a\uff08\uff12\u6b21\u5143\uff09\u306b\u5e83\u304c\u308b\u30c7\u30fc\u30bf\u3092\u3001\uff11\u672c\u306e\u76f4\u7dda\uff081\u6b21\u5143\uff09\u3067\u8868\u3057\u305f\u3044\u30fb\u30fb\u30fb\u300d<\/p>\r\n<p>\u2192\u4e3b\u6210\u5206\u5206\u6790\u3067\u306f\u3001\u3053\u306e\u76f4\u7dda\u306e\u201d\u65b9\u5411\u201d\u3092\u8a08\u7b97\u3067\u6c42\u3081\u308b\u3002<\/p>\r\n<p><!-- notionvc: be136fc0-123d-4cc2-8d4c-41f80f4971d4 --><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><!-- notionvc: c825c7bf-1f72-41d8-a822-88b72cb32327 --><\/p>\n\n<h2>\u4e3b\u6210\u5206\u5206\u6790\uff08PCA)\u3068\u306f\uff1f<\/h2>\n<p>\u307e\u305a\u3001\u4e3b\u6210\u5206\u5206\u6790\uff08PCA)\u3001\u5b66\u7fd2\u30c7\u30fc\u30bf\u306b\u304a\u3044\u3066**\u300c\u5206\u6563\u300d\uff1d\u300c\u60c5\u5831\u300d**\u3068\u3068\u3089\u3048\u3001\u60c5\u5831\u3092\u3067\u304d\u308b\u3060\u3051\u6b8b\u3059\uff08\u5206\u6563\u304c\u5927\u304d\u304f\u306a\u308b\uff09\u3088\u3046\u306a\u65b9\u5411\u306b\u30c7\u30fc\u30bf\u3092\u5727\u7e2e\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u6700\u521d\u306e\u4e3b\u6210\u5206\uff08\u3053\u308c\u3092\u7b2c1\u4e3b\u6210\u5206\u3068\u3044\u3044\u307e\u3059\uff09\u306f\u5b66\u7fd2\u30c7\u30fc\u30bf\u306e\u4e2d\u3067\u6700\u3082\u5206\u6563\u304c\u5927\u304d\u3044\u65b9\u5411\u306b\u3068\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u60c5\u5831\u3092\u6700\u5927\u9650\u306b\u4fdd\u6301\u3057\u3066\u3044\u308b\u65b9\u5411\u3067\u3059\u3002<\/p>\r\n<p>\u7b2c1\u4e3b\u6210\u5206\u304c\u6c7a\u307e\u3063\u305f\u5f8c\u3001\u7b2c2\u4e3b\u6210\u5206\u306f\u7b2c1\u4e3b\u6210\u5206\u3068\u76f4\u4ea4\u3057\u3001\u304b\u3064\u7b2c1\u4e3b\u6210\u5206\u306b\u5bfe\u3057\u3066\u5206\u6563\u304c\u6700\u5927\u3068\u306a\u308b\u3088\u3046\u306b\u53d6\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u7b2c2\u4e3b\u6210\u5206\u306f\u6b8b\u308a\u306e\u30c7\u30fc\u30bf\u306e\u4e2d\u3067\u6700\u3082\u5206\u6563\u304c\u5927\u304d\u3044\u65b9\u5411\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5143\u306e\u30c7\u30fc\u30bf\u306e\u6b21\u5143\u6570\u307e\u3067\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\r\n<b>\u4e3b\u6210\u5206\u5206\u6790\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/b>\r\n<p>STEP 1\uff1a<strong>\u6a19\u6e96\u5316 \uff1a<\/strong> \u7570\u306a\u308b\u30b9\u30b1\u30fc\u30eb\u306e\u5909\u6570\u3092\u3001\u540c\u3058\u30b9\u30b1\u30fc\u30eb\u306b\u63c3\u3048\u307e\u3059\u3002<\/p>\r\n<p>STEP 2\uff1a<strong>\u5171\u5206\u6563\u884c\u5217\u306e\u8a08\u7b97:<\/strong> \u6a19\u6e96\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u5171\u5206\u6563\u884c\u5217\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\r\n<p>STEP 3\uff1a<strong>\u56fa\u6709\u5024\u5206\u89e3:<\/strong> \u5171\u5206\u6563\u884c\u5217\u3092\u56fa\u6709\u5024\u5206\u89e3\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u56fa\u6709\u5024\u3068\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u56fa\u6709\u30d9\u30af\u30c8\u30eb\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\r\n<p>STEP 4\uff1a<strong>\u56fa\u6709\u5024\u306e\u964d\u9806\u3067\u30bd\u30fc\u30c8:<\/strong> \u56fa\u6709\u5024\u3092\u5927\u304d\u3044\u9806\u306b\u4e26\u3079\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5206\u6563\u304c\u6700\u3082\u5927\u304d\u3044\u65b9\u5411\uff08\u4e3b\u6210\u5206\uff09\u304b\u3089\u9806\u306b\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>STEP5\uff1a<strong>\u4e3b\u6210\u5206\u306e\u9078\u629e:<\/strong> \u4e0a\u4f4dk\u500b\u306e\u4e3b\u6210\u5206\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u3053\u3067\u3001\u5404\u4e3b\u6210\u5206\u304c\u5143\u30c7\u30fc\u30bf\u306e\u5206\u6563\u306e\u3046\u3061\u3001\u3069\u308c\u3060\u3051\u3092\u8aac\u660e\u3067\u304d\u308b\u304b\u3092\u793a\u3059\u5272\u5408\u3092<\/p>\r\n<p>**\u5bc4\u4e0e\u7387\uff08Explained Variance Ratio\uff09**\u3068\u3044\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u305d\u306e\u4e3b\u6210\u5206\u306e\u56fa\u6709\u5024\u3092\u5143\u30c7\u30fc\u30bf\u306e\u5168\u4f53\u306e\u56fa\u6709\u5024\u306e\u7dcf\u548c\u3067\u5272\u3063\u305f\u3082\u306e\u3067\u3059\u3002\u5bc4\u4e0e\u7387\u304c\u9ad8\u3044\u4e3b\u6210\u5206\u307b\u3069\u3001\u5143\u30c7\u30fc\u30bf\u306e\u60c5\u5831\u3092\u3088\u304f\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<p>\u6b21\u306b\u3001\u5bc4\u4e0e\u7387\u3092\u4e3b\u6210\u5206\u3054\u3068\u306b\u8db3\u3057\u4e0a\u3052\u305f\u3082\u306e\u3092**\u7d2f\u7a4d\u5bc4\u4e0e\u7387\uff08Cumulative Explained Variance Ratio\uff09\u3068\u3044\u3044\u307e\u3059\u3002**\u7d2f\u7a4d\u5bc4\u4e0e\u7387\u306f\u3001\u30c7\u30fc\u30bf\u306e\u3069\u308c\u304f\u3089\u3044\u306e\u60c5\u5831\u3092\u7dad\u6301\u3057\u305f\u3044\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3042\u308b\u95be\u5024\uff08\u4f8b: 0.95\u306a\u3069\uff09\u3092\u6c7a\u3081\u3066\u3001\u305d\u306e\u5024\u3092\u8d85\u3048\u308b\u3088\u3046\u306b\u4e3b\u6210\u5206\u3092\u9078\u3076\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\r\n<p>\u203b\u4e3b\u6210\u5206\u5206\u6790\u306e\u7d30\u304b\u306a\u5c0e\u51fa\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/p>\r\n<p><a href=\"https:\/\/www.hello-statisticians.com\/explain-terms-cat\/pca1.html\">https:\/\/www.hello-statisticians.com\/explain-terms-cat\/pca1.html<\/a><\/p>\r\n<p>\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u5927\u5b661\u5e74\u751f\u30ec\u30d9\u30eb\u306e\u7dda\u5f62\u4ee3\u6570\u3068\u5fae\u7a4d\u5206\u306e\u77e5\u8b58\u304c\u4eee\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7d19\u3068\u30da\u30f3\u3092\u6301\u3063\u3066\u3058\u3063\u304f\u308a\u3068\u5f0f\u3092\u8ffd\u3046\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\uff01\uff09<\/p>\r\n<p><!-- notionvc: 047e81a2-9647-4800-9a7f-048874cfafc7 --><\/p>\n\n<h2>python\u3067\u5b9f\u88c5\u3057\u3066\u307f\u3088\u3046\uff01<\/h2>\n<p>\u5171\u5206\u6563\u884c\u5217\u3001\u56fa\u6709\u5024\u5206\u89e3\u30fb\u30fb\u30fb\u3068\u5c0f\u96e3\u3057\u3044\u5358\u8a9e\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u306d\u3002\u3057\u304b\u3057python\u3067\u306f\u3001<!-- notionvc: 549d017d-9a25-4a3d-9e72-2f55d78916a4 --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>from sklearn.decomposition import PCA<\/code><\/pre>\r\n<\/div>\r\n<p>\u3092\u7528\u3044\u3066\u3001\u975e\u5e38\u306b\u7c21\u5358\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001Wine\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4ee5\u4e0b\u306e13\u500b\u306e\u7279\u5fb4\u91cf\u3068\u30013\u7a2e\u985e\u306e\u30ef\u30a4\u30f3\u306e\u3044\u305a\u308c\u304b\u3092\u793a\u3059\u30e9\u30d9\u30eb\u3067\u69cb\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u3059\u3002\u3053\u3061\u3089\u306f\u3001scikit-learn\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<!-- notionvc: ef589b29-28ff-4ae2-b540-a3a3194248ec --><\/p>\r\n<ul>\r\n\t<li>alcohol\uff1a\u00a0\u30a2\u30eb\u30b3\u30fc\u30eb\u5ea6\u6570<\/li>\r\n\t<li>malic_acid\uff1a\u00a0\u30ea\u30f3\u30b4\u9178<\/li>\r\n\t<li>ash\uff1a\u00a0\u7070\u5206\uff08\u304b\u3044\u3076\u3093\uff09<\/li>\r\n\t<li>alcalinity_of_ash\uff1a\u00a0\u7070\u5206\u306e\u30a2\u30eb\u30ab\u30ea\u5ea6<\/li>\r\n\t<li>magnesium\uff1a\u00a0\u30de\u30b0\u30cd\u30b7\u30a6\u30e0<\/li>\r\n\t<li>total_phenols\uff1a\u00a0\u5168\u30d5\u30a7\u30ce\u30fc\u30eb\u542b\u91cf<\/li>\r\n\t<li>flavanoids\uff1a\u00a0\u30d5\u30e9\u30dc\u30ce\u30a4\u30c9<\/li>\r\n\t<li>nonflavanoid_phenols\uff1a\u00a0\u975e\u30d5\u30e9\u30dc\u30ce\u30a4\u30c9\u30d5\u30a7\u30ce\u30fc\u30eb<\/li>\r\n\t<li>proanthocyanins\uff1a\u00a0\u30d7\u30ed\u30a2\u30f3\u30c8\u30b7\u30a2\u30cb\u30f3<\/li>\r\n\t<li>color_intensity\uff1a\u00a0\u8272\u306e\u6fc3\u3055<\/li>\r\n\t<li>hue\uff1a\u00a0\u8272\u76f8<\/li>\r\n\t<li>od280\/od315_of_diluted_wines\uff1a\u00a0\u5e0c\u91c8\u30ef\u30a4\u30f3\u6eb6\u6db2\u306eOD280\uff0fOD315\uff08\uff1d280nm\u3068315nm\u306e\u5438\u5149\u5ea6\u306e\u6bd4\uff09<\/li>\r\n\t<li>proline\uff1a\u00a0\u30d7\u30ed\u30ea\u30f3<\/li>\r\n<\/ul>\r\n<p>PCA\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\r\n<p><!-- notionvc: 96715f2e-6bf6-4661-9742-adb9205ad5ff --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>import numpy as np\r\nfrom sklearn.datasets import load_wine\r\nfrom sklearn.preprocessing import StandardScaler\r\nfrom sklearn.decomposition import PCA\r\n\r\nwine = load_wine()\r\nX_wine = wine.data\r\n\r\nscaler = StandardScaler()\r\nX= scaler.fit_transform(X_wine)\r\n\r\npca = PCA()\r\nX_pca = pca.fit(X)<\/code><\/pre>\r\n<\/div>\r\n<p>&nbsp;<\/p>\n\n<h2>\u4e3b\u6210\u5206\u5206\u6790\u306e\u7d50\u679c\u3092\u89e3\u91c8<\/h2>\n<p>\u5148\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u4ee5\u4e0b\u306e\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<!-- notionvc: ec9e79d6-964d-4143-8047-4eced5d1adfc --><\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-3-300x222.png\" alt=\"\" width=\"300\" height=\"222\" class=\"alignnone size-medium wp-image-4196\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-3-300x222.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-3.png 583w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-4-300x229.png\" alt=\"\" width=\"300\" height=\"229\" class=\"alignnone size-medium wp-image-4197\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-4-300x229.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/Untitled-4.png 567w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\r\n<p>1\u3064\u76ee\u306e\u30b0\u30e9\u30d5\u306f\u5404\u7a2e\u4e3b\u6210\u5206\u306e\u5bc4\u4e0e\u7387\u3092\u8868\u3059\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u30b0\u30e9\u30d5\u3088\u308a\u3001\u7b2c1\u4e3b\u6210\u5206\u3067\u306f\u30c7\u30fc\u30bf\u306e36\uff05\u3092\u8aac\u660e\u3057\u3001\u7d9a\u304f\u7b2c2\u4e3b\u6210\u5206\u3067\u306f\u30c7\u30fc\u30bf\u306e11\uff05\u3092\u8aac\u660e\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\r\n<p>2\u3064\u76ee\u306e\u30b0\u30e9\u30d5\u306f\u7d2f\u7a4d\u5bc4\u4e0e\u7387\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002\u7b2c6\u4e3b\u6210\u5206\u307e\u3067\u3067\u5168\u4f53\u306e85\uff05\u3092\u8aac\u660e\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u8aad\u307f\u53d6\u308c\u307e\u3059\u3002\u3082\u3057\u3001\u5143\u30c7\u30fc\u30bf\u306e\u60c5\u5831\u309290\uff05\u4ee5\u4e0a\u6b8b\u3057\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u7b2c8\u4e3b\u6210\u5206\u307e\u3067\u53d6\u308c\u3070\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\r\n<p>\u3067\u306f\u3001\u7b2c1\u4e3b\u6210\u5206\u7279\u5fb4\u30d9\u30af\u30c8\u30eb\u304b\u3089\u3069\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u5206\u304b\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\r\n<p>\u305d\u306e\u7279\u5fb4\u3092\u898b\u308b\u305f\u3081\u306b\u306f\u3001\u7b2c1\u4e3b\u6210\u5206\u306e\u7279\u5fb4\u30d9\u30af\u30c8\u30eb\u306e\u8981\u7d20\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u306e\u7279\u5fb4\u30d9\u30af\u30c8\u30eb\u306e\u5404\u8981\u7d20\u306f\u7b2c1\u4e3b\u6210\u5206\u306b\u304a\u3051\u308b\u5f71\u97ff\u5ea6\u5408\u3044\u3092\u8868\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3001flavanoid\u3068total_phenols\u306e\u5024\u304c\u5927\u304d\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002\u3053\u308c\u3088\u308a\u3001\u30ef\u30a4\u30f3\u3092\u7279\u5fb4\u3065\u3051\u308b\u3082\u306e\u3068\u3057\u3066\u3001\u300c\u30d5\u30e9\u30dc\u30ce\u30a4\u30c9\u300d\u3068\u300c\u5168\u30d5\u30a7\u30ce\u30fc\u30eb\u91cf\u300d\u304c\u5927\u304d\u306a\u8981\u56e0\u306a\u306e\u3067\u306f\uff1f\u3068\u8003\u5bdf\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p><!-- notionvc: 722675f3-c118-4af4-ba45-c6c69ba2a855 --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code># \u7b2c1\u4e3b\u6210\u5206\u306e\u7279\u5fb4\u30d9\u30af\u30c8\u30eb\r\nfirst_principal_component = pca.components_[0]\r\n\r\n# \u7d50\u679c\u3092\u8868\u793a\r\ndf = pd.DataFrame(first_principal_component, index=wine.feature_names, columns=['First Principal Component'])\r\nprint(df)<\/code><\/pre>\r\n<\/div>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-10-14.39.00-300x190.png\" alt=\"\" width=\"300\" height=\"190\" class=\"alignnone size-medium wp-image-4198\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-10-14.39.00-300x190.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-10-14.39.00-768x487.png 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-10-14.39.00.png 846w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\r\n<p>\u4ee5\u4e0a\u3001\u4e3b\u6210\u5206\u5206\u6790\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3057\u305f\u3002<\/p>\r\n<p>\u666e\u6bb5\u4f55\u3068\u306a\u304f\u4f7f\u3063\u3066\u3044\u308b\u624b\u6cd5\u3082\u3001\u3088\u308a\u8a73\u3057\u304f\u898b\u3066\u307f\u308b\u3068\u7406\u89e3\u304c\u6df1\u307e\u308a\u307e\u3059\u306d\uff01<!-- notionvc: d3f81c87-20c1-43c3-8b61-4572632b5050 --><\/p>","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u5206\u6790\u306e\u524d\u51e6\u7406\u3068\u3057\u3066\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u6b21\u5143\u524a\u6e1b\u624b\u6cd5\u306e\u3072\u3068\u3064\u3067\u3042\u308b\u4e3b\u6210\u5206\u5206\u6790\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u6b21\u5143\u524a\u6e1b\u3068\u306f\uff1f \u6b21\u5143\u524a\u6e1b\u3068\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u7279\u5fb4\u91cf\u306e\u6570\u3084\u6b21\u5143\u3092\u524a\u6e1b\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u3053\u3068\u3067\u3059\u3002\u30e2\u30c7\u30eb\u4f5c\u6210\u306e\u524d\u51e6\u7406\u306e\u3072\u3068\u3064\u3068\u3057\u3066\u3088\u304f [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":3528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1246],"tags":[],"class_list":["post-4194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-infrastructure"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=4194"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4194\/revisions"}],"predecessor-version":[{"id":4199,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4194\/revisions\/4199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/3528"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=4194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=4194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=4194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}