{"id":1204,"date":"2023-07-27T07:20:18","date_gmt":"2023-07-27T07:20:18","guid":{"rendered":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/"},"modified":"2023-07-27T07:20:18","modified_gmt":"2023-07-27T07:20:18","slug":"python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1","status":"publish","type":"post","link":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/","title":{"rendered":"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><em>p<\/em> \uac1c\uc758 \uc608\uce21 \ubcc0\uc218 \uc138\ud2b8\uc640 \uc751\ub2f5 \ubcc0\uc218\uac00 \uc8fc\uc5b4\uc9c0\uba74 <a href=\"https:\/\/statorials.org\/ko\/\u1103\u1161\u110c\u116e\u11bc-\u1109\u1165\u11ab\u1112\u1167\u11bc-\u1112\u116c\u1100\u1171\/\" target=\"_blank\" rel=\"noopener noreferrer\">\ub2e4\uc911 \uc120\ud615 \ud68c\uadc0 \ubd84\uc11d<\/a> \uc5d0\uc11c\ub294 RSS(\uc794\ucc28 \uc81c\uacf1\ud569)\ub97c \ucd5c\uc18c\ud654\ud558\uae30 \uc704\ud574 \ucd5c\uc18c \uc81c\uacf1\uc774\ub77c\ub294 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>RSS = \u03a3(y <sub>i<\/sub> \u2013 \u0177 <sub>i<\/sub> ) <sup>2<\/sup><\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\uae08:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>\u03a3<\/strong> : <em>\ud569\uacc4\ub97c<\/em> \uc758\ubbf8\ud558\ub294 \uadf8\ub9ac\uc2a4 \uae30\ud638<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>y <sub>i<\/sub><\/strong> : <sup>i\ubc88\uc9f8<\/sup> \uad00\uce21\uac12\uc5d0 \ub300\ud55c \uc2e4\uc81c \uc751\ub2f5 \uac12<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>\u0177 <sub>i<\/sub><\/strong> : \ub2e4\uc911\uc120\ud615\ud68c\uadc0\ubaa8\ub378\uc744 \uae30\ubc18\uc73c\ub85c \uc608\uce21\ub41c \ubc18\uc751\uac12<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\uadf8\ub7ec\ub098 \uc608\uce21\ubcc0\uc218\uc758 \uc0c1\uad00\uad00\uacc4\uac00 \ub192\uc73c\uba74<\/span> <a href=\"https:\/\/statorials.org\/ko\/\u1103\u1161\u110c\u116e\u11bc\u1100\u1169\u11bc\u1109\u1165\u11ab\u1109\u1165\u11bc-\u1112\u116c\u1100\u1171\/\" target=\"_blank\" rel=\"noopener noreferrer\">\ub2e4\uc911\uacf5\uc120\uc131\uc774<\/a> <span style=\"color: #000000;\">\ubb38\uc81c\uac00 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \ubaa8\ub378 \uacc4\uc218 \ucd94\uc815\uc774 \uc2e0\ub8b0\ud560 \uc218 \uc5c6\uac8c \ub418\uace0 \ub192\uc740 \ubd84\uc0b0\uc774 \ub098\ud0c0\ub0a0 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774 \ubb38\uc81c\ub97c \ud53c\ud558\ub294 \ud55c \uac00\uc9c0 \ubc29\ubc95\uc740 <a href=\"https:\/\/statorials.org\/ko\/\u110c\u116e\u1109\u1165\u11bc\u1107\u116e\u11ab-\u1112\u116c\u1100\u1171\/\" target=\"_blank\" rel=\"noopener noreferrer\">\uc8fc\uc131\ubd84 \ud68c\uadc0\ub97c<\/a> \uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774\ub294 \uc6d0\ub798 <em>p<\/em> \uc608\uce21 \ubcc0\uc218\uc758 <em>M\uac1c\uc758<\/em> \uc120\ud615 \uc870\ud569(&#8220;\uc8fc\uc131\ubd84&#8221;\uc774\ub77c\uace0 \ud568)\uc744 \ucc3e\uc740 \ub2e4\uc74c \ucd5c\uc18c \uc81c\uacf1\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc8fc\uc131\ubd84\uc744 \uc608\uce21 \ubcc0\uc218\ub85c \uc0ac\uc6a9\ud558\uc5ec \uc120\ud615 \ud68c\uadc0 \ubaa8\ub378\uc744 \uc801\ud569\uc2dc\ud0b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 Python\uc5d0\uc11c \uc8fc\uc131\ubd84 \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>1\ub2e8\uacc4: \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \uac00\uc838\uc624\uae30<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">\uba3c\uc800 Python\uc5d0\uc11c \uc8fc\uc131\ubd84 \ud68c\uadc0(PCR)\ub97c \uc218\ud589\ud558\ub294 \ub370 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n<span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n<span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">preprocessing<\/span> <span style=\"color: #008000;\">import<\/span> scale \n<span style=\"color: #008000;\">from<\/span> sklearn <span style=\"color: #008000;\">import<\/span> model_selection\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> RepeatedKFold\n<span style=\"color: #008000;\">from<\/span> sklearn.model_selection <span style=\"color: #008000;\">import<\/span> train_test_split\n<span style=\"color: #008000;\">from<\/span> sklearn. PCA <span style=\"color: #008000;\">import<\/span> <span style=\"color: #3366ff;\">decomposition<\/span>\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">linear_model<\/span> <span style=\"color: #008000;\">import<\/span> LinearRegression\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">metrics<\/span> <span style=\"color: #008000;\">import<\/span> mean_squared_error\n<\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>2\ub2e8\uacc4: \ub370\uc774\ud130 \ub85c\ub4dc<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\uc774 \uc608\uc5d0\uc11c\ub294 33\uac1c\uc758 \uc11c\ub85c \ub2e4\ub978 \uc790\ub3d9\ucc28\uc5d0 \ub300\ud55c \uc815\ubcf4\uac00 \ud3ec\ud568\ub41c <strong>mtcars<\/strong> \ub77c\ub294 \ub370\uc774\ud130 \uc138\ud2b8\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. <strong>hp\ub97c<\/strong> \ubc18\uc751 \ubcc0\uc218\ub85c \uc0ac\uc6a9\ud558\uace0 \ub2e4\uc74c \ubcc0\uc218\ub97c \uc608\uce21 \ubcc0\uc218\ub85c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">mpg<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ud45c\uc2dc\ud558\ub2e4<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ub625<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ubb34\uac8c<\/span><\/li>\n<li> <span style=\"color: #000000;\">q\ucd08<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 \uc774 \ub370\uc774\ud130\uc138\ud2b8\ub97c \ub85c\ub4dc\ud558\uace0 \ud45c\uc2dc\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define URL where data is located\n<\/span>url = \"https:\/\/raw.githubusercontent.com\/Statorials\/Python-Guides\/main\/mtcars.csv\"\n\n<span style=\"color: #008080;\">#read in data\n<\/span>data_full = pd. <span style=\"color: #3366ff;\">read_csv<\/span> (url)\n\n<span style=\"color: #008080;\">#select subset of data\n<\/span>data = data_full[[\"mpg\", \"disp\", \"drat\", \"wt\", \"qsec\", \"hp\"]]\n\n<span style=\"color: #008080;\">#view first six rows of data\n<\/span>data[0:6]\n\n\n        mpg disp drat wt qsec hp\n0 21.0 160.0 3.90 2.620 16.46 110\n1 21.0 160.0 3.90 2.875 17.02 110\n2 22.8 108.0 3.85 2.320 18.61 93\n3 21.4 258.0 3.08 3.215 19.44 110\n4 18.7 360.0 3.15 3.440 17.02 175\n5 18.1 225.0 2.76 3.460 20.22 105<\/strong><\/span><\/pre>\n<h3> <strong>3\ub2e8\uacc4: PCR \ubaa8\ub378 \uc870\uc815<\/strong><\/h3>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 PCR \ubaa8\ub378\uc744 \uc774 \ub370\uc774\ud130\uc5d0 \ub9de\ucd94\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \ub2e4\uc74c \uc0ac\ud56d\uc5d0 \uc720\uc758\ud558\uc138\uc694.<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>pca.fit_transform(scale(X))<\/strong> : \uc774\ub294 \uac01 \uc608\uce21 \ubcc0\uc218\uac00 \ud3c9\uade0 0, \ud45c\uc900 \ud3b8\ucc28 1\uc744 \uac16\ub3c4\ub85d \uc2a4\ucf00\uc77c\ub9c1\ub418\uc5b4\uc57c \ud568\uc744 Python\uc5d0 \uc9c0\uc2dc\ud569\ub2c8\ub2e4. \uc774\ub807\uac8c \ud558\uba74 \uc608\uce21 \ubcc0\uc218\uac00 \ub2e4\uc74c\uacfc \uac19\uc740 \uacbd\uc6b0 \ubaa8\ub378\uc5d0 \ub108\ubb34 \ub9ce\uc740 \uc601\ud5a5\uc744 \ubbf8\uce58\uc9c0 \uc54a\ub3c4\ub85d \ud569\ub2c8\ub2e4. \uc774\ub7f0 \uc77c\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \ub2e4\uc591\ud55c \ub2e8\uc704\ub85c \uce21\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>cv = RepeatedKFold()<\/strong> : Python\uc5d0 <a href=\"https:\/\/statorials.org\/ko\/k-\u1100\u1167\u11b8-\u1100\u116d\u110e\u1161-\u1100\u1165\u11b7\u110c\u1173\u11bc\/\" target=\"_blank\" rel=\"noopener noreferrer\">k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744<\/a> \uc0ac\uc6a9\ud558\uc5ec \ubaa8\ub378 \uc131\ub2a5\uc744 \ud3c9\uac00\ud558\ub3c4\ub85d \uc9c0\uc2dc\ud569\ub2c8\ub2e4. \uc774 \uc608\uc5d0\uc11c\ub294 k = 10 \uc811\uae30\ub97c \uc120\ud0dd\ud558\uace0 3\ubc88 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/span> <\/li>\n<\/ul>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define predictor and response variables\n<\/span>X = data[[\"mpg\", \"disp\", \"drat\", \"wt\", \"qsec\"]]\ny = data[[\"hp\"]]\n\n<span style=\"color: #008080;\">#scale predictor variables\n<\/span>pca = pca()\nX_reduced = pca. <span style=\"color: #3366ff;\">fit_transform<\/span> ( <span style=\"color: #3366ff;\">scale<\/span> (X))\n\n<span style=\"color: #008080;\">#define cross validation method\n<\/span>cv = RepeatedKFold(n_splits= <span style=\"color: #008000;\">10<\/span> , n_repeats= <span style=\"color: #008000;\">3<\/span> , random_state= <span style=\"color: #008000;\">1<\/span> )\n\nregr = LinearRegression()\nmse = []\n\n<span style=\"color: #008080;\"># Calculate MSE with only the intercept\n<\/span>score = -1*model_selection. <span style=\"color: #3366ff;\">cross_val_score<\/span> (regr,\n           n.p. <span style=\"color: #3366ff;\">ones<\/span> ((len(X_reduced),1)), y, cv=cv,\n           scoring=' <span style=\"color: #008000;\">neg_mean_squared_error<\/span> '). <span style=\"color: #3366ff;\">mean<\/span> ()    \nmse. <span style=\"color: #3366ff;\">append<\/span> (score)\n\n<span style=\"color: #008080;\"># Calculate MSE using cross-validation, adding one component at a time\n<\/span><span style=\"color: #008000;\">for<\/span> i <span style=\"color: #008000;\">in<\/span> np. <span style=\"color: #3366ff;\">arange<\/span> (1, 6):\n    score = -1*model_selection. <span style=\"color: #3366ff;\">cross_val_score<\/span> (regr,\n               X_reduced[:,:i], y, cv=cv, scoring=' <span style=\"color: #008000;\">neg_mean_squared_error<\/span> '). <span style=\"color: #3366ff;\">mean<\/span> ()\n    mse. <span style=\"color: #3366ff;\">append<\/span> (score)\n    \n<span style=\"color: #008080;\"># Plot cross-validation results    \n<\/span>plt. <span style=\"color: #3366ff;\">plot<\/span> (mse)\nplt. <span style=\"color: #3366ff;\">xlabel<\/span> ('Number of Principal Components')\nplt. <span style=\"color: #3366ff;\">ylabel<\/span> ('MSE')\nplt. <span style=\"color: #3366ff;\">title<\/span> ('hp')<\/strong><\/span> <\/pre>\n<h3><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11950 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pcrpython1.png\" alt=\"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0\" width=\"424\" height=\"285\" srcset=\"\" sizes=\"auto, \"><\/h3>\n<p> <span style=\"color: #000000;\">\ud50c\ub86f\uc740 x\ucd95\uc744 \ub530\ub77c \uc8fc\uc131\ubd84 \uc218\ub97c \ud45c\uc2dc\ud558\uace0 y\ucd95\uc744 \ub530\ub77c MSE(\ud3c9\uade0 \uc81c\uacf1 \uc624\ucc28) \ud14c\uc2a4\ud2b8\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uadf8\ub798\ud504\uc5d0\uc11c \ub450 \uac1c\uc758 \uc8fc\uc131\ubd84\uc744 \ucd94\uac00\ud558\uba74 \ud14c\uc2a4\ud2b8\uc758 MSE\uac00 \uac10\uc18c\ud558\uc9c0\ub9cc \ub450 \uac1c \uc774\uc0c1\uc758 \uc8fc\uc131\ubd84\uc744 \ucd94\uac00\ud558\uba74 \uc99d\uac00\ud558\uae30 \uc2dc\uc791\ud558\ub294 \uac83\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub530\ub77c\uc11c \ucd5c\uc801 \ubaa8\ub378\uc5d0\ub294 \ucc98\uc74c \ub450 \uac1c\uc758 \uc8fc\uc131\ubd84\ub9cc \ud3ec\ud568\ub429\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub610\ud55c \ub2e4\uc74c \ucf54\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubaa8\ub378\uc5d0 \uac01 \uc8fc\uc131\ubd84\uc744 \ucd94\uac00\ud558\uc5ec \uc124\uba85\ub41c \uc751\ub2f5 \ubcc0\uc218\uc758 \ubd84\uc0b0 \ubc31\ubd84\uc728\uc744 \uacc4\uc0b0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong>n.p. <span style=\"color: #3366ff;\">cumsum<\/span> (np. <span style=\"color: #3366ff;\">round<\/span> (pca. <span style=\"color: #3366ff;\">explained_variance_ratio_<\/span> , decimals= <span style=\"color: #008000;\">4<\/span> )* <span style=\"color: #008000;\">100<\/span> )\n\narray([69.83, 89.35, 95.88, 98.95, 99.99])\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\uc6b0\ub9ac\ub294 \ub2e4\uc74c\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\uccab \ubc88\uc9f8 \uc8fc\uc131\ubd84\ub9cc \uc0ac\uc6a9\ud558\uc5ec \ubc18\uc751 \ubcc0\uc218 \ubcc0\ub3d9\uc758 <strong>69.83%<\/strong> \ub97c \uc124\uba85\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ub450 \ubc88\uc9f8 \uc8fc\uc131\ubd84\uc744 \ucd94\uac00\ud558\uba74 \ubc18\uc751 \ubcc0\uc218 \ubcc0\ub3d9\uc758 <strong>89.35%<\/strong> \ub97c \uc124\uba85\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\ub354 \ub9ce\uc740 \uc8fc\uc131\ubd84\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub354 \ub9ce\uc740 \ubd84\uc0b0\uc744 \uc124\uba85\ud560 \uc218 \uc788\uc9c0\ub9cc, \ub450 \uac1c \uc774\uc0c1\uc758 \uc8fc\uc131\ubd84\uc744 \ucd94\uac00\ud574\ub3c4 \uc2e4\uc81c\ub85c \uc124\uba85\ub41c \ubd84\uc0b0\uc758 \ube44\uc728\uc774 \ud06c\uac8c \uc99d\uac00\ud558\uc9c0 \uc54a\ub294\ub2e4\ub294 \uac83\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>4\ub2e8\uacc4: \ucd5c\uc885 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc608\uce21<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\ucd5c\uc885 2\uc8fc\uc131\ubd84 PCR \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc0c8\ub85c\uc6b4 \uad00\ucc30\uc5d0 \ub300\ud55c \uc608\uce21\uc744 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 \uc6d0\ubcf8 \ub370\uc774\ud130 \uc138\ud2b8\ub97c \ud6c8\ub828 \uc138\ud2b8\uc640 \ud14c\uc2a4\ud2b8 \uc138\ud2b8\ub85c \ubd84\ud560\ud558\uace0 \ub450 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\uac00 \uc788\ub294 PCR \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud14c\uc2a4\ud2b8 \uc138\ud2b8\uc5d0 \ub300\ud574 \uc608\uce21\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#split the dataset into training (70%) and testing (30%) sets\n<\/span>X_train,X_test,y_train,y_test = <span style=\"color: #3366ff;\">train_test_split<\/span> (X,y,test_size= <span style=\"color: #008000;\">0.3<\/span> , random_state= <span style=\"color: #008000;\">0<\/span> ) \n\n<span style=\"color: #008080;\">#scale the training and testing data\n<\/span>X_reduced_train = pca. <span style=\"color: #3366ff;\">fit_transform<\/span> ( <span style=\"color: #3366ff;\">scale<\/span> (X_train))\nX_reduced_test = pca. <span style=\"color: #3366ff;\">transform<\/span> ( <span style=\"color: #3366ff;\">scale<\/span> (X_test))[:,:1]\n\n<span style=\"color: #008080;\">#train PCR model on training data \n<\/span>regr = LinearRegression()\nreg. <span style=\"color: #3366ff;\">fit<\/span> (X_reduced_train[:,:1], y_train)\n\n<span style=\"color: #008080;\">#calculate RMSE\n<\/span>pred = regr. <span style=\"color: #3366ff;\">predict<\/span> (X_reduced_test)\nn.p. <span style=\"color: #3366ff;\">sqrt<\/span> ( <span style=\"color: #3366ff;\">mean_squared_error<\/span> (y_test, pred))\n\n40.2096\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">RMSE \ud14c\uc2a4\ud2b8 \uacb0\uacfc\ub294 <strong>40.2096<\/strong> \uc778 \uac83\uc73c\ub85c \ub098\ud0c0\ub0ac\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ud14c\uc2a4\ud2b8 \uc138\ud2b8 \uad00\ucc30\uc5d0 \ub300\ud574 \uc608\uce21\ub41c <em>HP<\/em> \uac12\uacfc \uad00\ucc30\ub41c <em>HP<\/em> \uac12 \uc0ac\uc774\uc758 \ud3c9\uade0 \ud3b8\ucc28\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774 \uc608\uc81c\uc5d0 \uc0ac\uc6a9\ub41c \uc804\uccb4 Python \ucf54\ub4dc\ub294 <a href=\"https:\/\/github.com\/Statorials\/Python-Guides\/blob\/main\/principal_components_regression.py\" target=\"_blank\" rel=\"noopener noreferrer\">\uc5ec\uae30\uc5d0\uc11c<\/a> \ucc3e\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>p \uac1c\uc758 \uc608\uce21 \ubcc0\uc218 \uc138\ud2b8\uc640 \uc751\ub2f5 \ubcc0\uc218\uac00 \uc8fc\uc5b4\uc9c0\uba74 \ub2e4\uc911 \uc120\ud615 \ud68c\uadc0 \ubd84\uc11d \uc5d0\uc11c\ub294 RSS(\uc794\ucc28 \uc81c\uacf1\ud569)\ub97c \ucd5c\uc18c\ud654\ud558\uae30 \uc704\ud574 \ucd5c\uc18c \uc81c\uacf1\uc774\ub77c\ub294 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. RSS = \u03a3(y i \u2013 \u0177 i ) 2 \uae08: \u03a3 : \ud569\uacc4\ub97c \uc758\ubbf8\ud558\ub294 \uadf8\ub9ac\uc2a4 \uae30\ud638 y i : i\ubc88\uc9f8 \uad00\uce21\uac12\uc5d0 \ub300\ud55c \uc2e4\uc81c \uc751\ub2f5 \uac12 \u0177 i : \ub2e4\uc911\uc120\ud615\ud68c\uadc0\ubaa8\ub378\uc744 \uae30\ubc18\uc73c\ub85c \uc608\uce21\ub41c \ubc18\uc751\uac12 \uadf8\ub7ec\ub098 \uc608\uce21\ubcc0\uc218\uc758 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1204","post","type-post","status-publish","format-standard","hentry","category-20"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)<\/title>\n<meta name=\"description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ko\/python\u110b\u1174-\u110c\u116e\u110b\u116d-\u1100\u116e\u1109\u1165\u11bc-\u110b\u116d\u1109\u1169-\u1112\u116c\u1100\u1171\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)\" \/>\n<meta property=\"og:description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ko\/python\u110b\u1174-\u110c\u116e\u110b\u116d-\u1100\u116e\u1109\u1165\u11bc-\u110b\u116d\u1109\u1169-\u1112\u116c\u1100\u1171\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T07:20:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pcrpython1.png\" \/>\n<meta name=\"author\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/\",\"url\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/\",\"name\":\"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ko\/#website\"},\"datePublished\":\"2023-07-27T07:20:18+00:00\",\"dateModified\":\"2023-07-27T07:20:18+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\"},\"description\":\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\uc9d1\",\"item\":\"https:\/\/statorials.org\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ko\/#website\",\"url\":\"https:\/\/statorials.org\/ko\/\",\"name\":\"Statorials\",\"description\":\"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ko\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\",\"name\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\"},\"description\":\"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30\",\"sameAs\":[\"https:\/\/statorials.org\/ko\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)","description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ko\/python\u110b\u1174-\u110c\u116e\u110b\u116d-\u1100\u116e\u1109\u1165\u11bc-\u110b\u116d\u1109\u1169-\u1112\u116c\u1100\u1171\/","og_locale":"ko_KR","og_type":"article","og_title":"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)","og_description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","og_url":"https:\/\/statorials.org\/ko\/python\u110b\u1174-\u110c\u116e\u110b\u116d-\u1100\u116e\u1109\u1165\u11bc-\u110b\u116d\u1109\u1169-\u1112\u116c\u1100\u1171\/","og_site_name":"Statorials","article_published_time":"2023-07-27T07:20:18+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pcrpython1.png"}],"author":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","Est. reading time":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/","url":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/","name":"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)","isPartOf":{"@id":"https:\/\/statorials.org\/ko\/#website"},"datePublished":"2023-07-27T07:20:18+00:00","dateModified":"2023-07-27T07:20:18+00:00","author":{"@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4"},"description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c \ud68c\uadc0\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-%e1%84%8c%e1%85%ae%e1%84%8b%e1%85%ad-%e1%84%80%e1%85%ae%e1%84%89%e1%85%a5%e1%86%bc-%e1%84%8b%e1%85%ad%e1%84%89%e1%85%a9-%e1%84%92%e1%85%ac%e1%84%80%e1%85%b1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\uc9d1","item":"https:\/\/statorials.org\/ko\/"},{"@type":"ListItem","position":2,"name":"Python\uc758 \uc8fc\uc131\ubd84 \ud68c\uadc0(\ub2e8\uacc4\ubcc4)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ko\/#website","url":"https:\/\/statorials.org\/ko\/","name":"Statorials","description":"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ko\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4","name":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8"},"description":"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30","sameAs":["https:\/\/statorials.org\/ko"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/1204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/comments?post=1204"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/1204\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/media?parent=1204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/categories?post=1204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/tags?post=1204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}