{"id":1176,"date":"2023-07-27T09:36:52","date_gmt":"2023-07-27T09:36:52","guid":{"rendered":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/"},"modified":"2023-07-27T09:36:52","modified_gmt":"2023-07-27T09:36:52","slug":"python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc","status":"publish","type":"post","link":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/","title":{"rendered":"Python\uc758 k-fold \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\ub370\uc774\ud130 \uc138\ud2b8\uc5d0 \ub300\ud55c \ubaa8\ub378\uc758 \uc131\ub2a5\uc744 \ud3c9\uac00\ud558\ub824\uba74 \ubaa8\ub378\uc758 \uc608\uce21\uc774 \uad00\ucc30\ub41c \ub370\uc774\ud130\uc640 \uc5bc\ub9c8\ub098 \uc798 \uc77c\uce58\ud558\ub294\uc9c0 \uce21\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774\ub97c \uc218\ud589\ud558\uae30 \uc704\ud574 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ub418\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c \uc811\uadfc \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud558\ub294 <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<\/a> \uc73c\ub85c \uc54c\ub824\uc838 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong> \ub370\uc774\ud130 \uc138\ud2b8\ub97c \ub300\ub7b5 \ub3d9\uc77c\ud55c \ud06c\uae30\uc758 <em>k\uac1c<\/em> \uadf8\ub8f9, \uc989 &#8220;\uc811\uae30&#8221;\ub85c \ubb34\uc791\uc704\ub85c \ub098\ub215\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong> \uc811\ud78c \ubd80\ubd84 \uc911 \ud558\ub098\ub97c \uad6c\uc18d \uc138\ud2b8\ub85c \uc120\ud0dd\ud569\ub2c8\ub2e4. \ud15c\ud50c\ub9bf\uc744 \ub098\uba38\uc9c0 k-1 \uc811\uae30\ub85c \uc870\uc815\ud569\ub2c8\ub2e4. \uc778\uc7a5\ub41c \ud50c\ub77c\uc774\uc758 \uad00\ucc30\uc5d0 \ub300\ud55c MSE \ud14c\uc2a4\ud2b8\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong> \ub9e4\ubc88 \ub2e4\ub978 \uc138\ud2b8\ub97c \uc81c\uc678 \uc138\ud2b8\ub85c \uc0ac\uc6a9\ud558\uc5ec \uc774 \ud504\ub85c\uc138\uc2a4\ub97c <em>k<\/em> \ubc88 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>4.<\/strong> <em>k\uac1c\uc758<\/em> \ud14c\uc2a4\ud2b8 MSE\uc758 \ud3c9\uade0\uc73c\ub85c \uc804\uccb4 \ud14c\uc2a4\ud2b8 MSE\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 Python\uc5d0\uc11c \ud2b9\uc815 \ubaa8\ub378\uc5d0 \ub300\ud574 k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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 \ub77c\uc774\ube0c\ub7ec\ub9ac \ub85c\ub4dc<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\uba3c\uc800 \uc774 \uc608\uc81c\uc5d0 \ud544\uc694\ud55c \ud568\uc218\uc640 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ub85c\ub4dc\ud569\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> train_test_split\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> KFold\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> cross_val_score\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> numpy <span style=\"color: #008000;\">import<\/span> means\n<span style=\"color: #008000;\">from<\/span> numpy <span style=\"color: #008000;\">import<\/span> absolute\n<span style=\"color: #008000;\">from<\/span> numpy <span style=\"color: #008000;\">import<\/span> sqrt\n<span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n<\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>2\ub2e8\uacc4: \ub370\uc774\ud130 \uc0dd\uc131<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c\uc73c\ub85c \ub450 \uac1c\uc758 \uc608\uce21 \ubcc0\uc218 <sub>x1<\/sub> \ubc0f <sub>x2<\/sub> \uc640 \ub2e8\uc77c \uc751\ub2f5 \ubcc0\uc218 y\ub97c \ud3ec\ud568\ud558\ub294 pandas DataFrame\uc744 \ub9cc\ub4ed\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong>df = pd.DataFrame({' <span style=\"color: #008000;\">y<\/span> ': [6, 8, 12, 14, 14, 15, 17, 22, 24, 23],\n                   ' <span style=\"color: #008000;\">x1<\/span> ': [2, 5, 4, 3, 4, 6, 7, 5, 8, 9],\n                   ' <span style=\"color: #008000;\">x2<\/span> ': [14, 12, 12, 13, 7, 8, 7, 4, 6, 5]})\n<\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>3\ub2e8\uacc4: K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d \uc218\ud589<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c\uc73c\ub85c <a href=\"https:\/\/statorials.org\/ko\/\u1109\u1165\u11ab\u1112\u1167\u11bc-\u1112\u116c\u1100\u1171-\u1111\u1161\u110b\u1175\u110a\u1165\u11ab\/\" target=\"_blank\" rel=\"noopener noreferrer\">\ub2e4\uc911 \uc120\ud615 \ud68c\uadc0 \ubaa8\ub378\uc744<\/a> \ub370\uc774\ud130 \uc138\ud2b8\uc5d0 \ub9de\ucd94\uace0 LOOCV\ub97c \uc218\ud589\ud558\uc5ec \ubaa8\ub378 \uc131\ub2a5\uc744 \ud3c9\uac00\ud569\ub2c8\ub2e4.<\/span><\/p>\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 = df[[' <span style=\"color: #008000;\">x1<\/span> ', ' <span style=\"color: #008000;\">x2<\/span> ']]\ny = df[' <span style=\"color: #008000;\">y<\/span> ']\n\n<span style=\"color: #008080;\">#define cross-validation method to use\n<\/span><span class=\"crayon-v\">cv<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-e\">KFold<\/span> <span class=\"crayon-sy\">(<\/span> <span class=\"crayon-v\">n_splits<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-cn\" style=\"color: #008000;\">10<\/span> <span class=\"crayon-sy\">,<\/span> <span class=\"crayon-v\">random_state<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-cn\" style=\"color: #008000;\">1<\/span> <span class=\"crayon-sy\">,<\/span> <span class=\"crayon-v\">shuffle<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-t\" style=\"color: #008000;\">True<\/span> <span class=\"crayon-sy\">)<\/span>\n\n<span style=\"color: #008080;\">#build multiple linear regression model\n<\/span>model = LinearRegression()\n\n<span style=\"color: #008080;\">#use k-fold CV to evaluate model\n<\/span>scores = cross_val_score(model, X, y, scoring=' <span style=\"color: #008000;\">neg_mean_absolute_error<\/span> ',\n                         cv=cv, n_jobs=-1)\n\n<span style=\"color: #008080;\">#view mean absolute error\n<\/span>mean(absolute(scores))\n\n3.6141267491803646\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\uadf8 \uacb0\uacfc, \ud3c9\uade0\uc808\ub300\uc624\ucc28(MAE)\uac00 <strong>3.614<\/strong> \uc784\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc989, \ubaa8\ub378 \uc608\uce21\uacfc \uc2e4\uc81c \uad00\ucc30\ub41c \ub370\uc774\ud130 \uac04\uc758 \ud3c9\uade0 \uc808\ub300 \uc624\ucc28\ub294 3.614\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc77c\ubc18\uc801\uc73c\ub85c MAE\uac00 \ub0ae\uc744\uc218\ub85d \ubaa8\ub378\uc774 \uc2e4\uc81c \uad00\uce21\uce58\ub97c \ub354 \uc798 \uc608\uce21\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ubaa8\ub378 \uc131\ub2a5\uc744 \ud3c9\uac00\ud558\uae30 \uc704\ud574 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ub418\ub294 \ub610 \ub2e4\ub978 \uce21\uc815\ud56d\ubaa9\uc740 RMSE(\ud3c9\uade0 \uc81c\uacf1\uadfc \uc624\ucc28)\uc785\ub2c8\ub2e4. \ub2e4\uc74c \ucf54\ub4dc\ub294 LOOCV\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc774 \uce21\uc815\ud56d\ubaa9\uc744 \uacc4\uc0b0\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;\">#define predictor and response variables\n<\/span>X = df[[' <span style=\"color: #008000;\">x1<\/span> ', ' <span style=\"color: #008000;\">x2<\/span> ']]\ny = df[' <span style=\"color: #008000;\">y<\/span> ']\n\n<span style=\"color: #008080;\">#define cross-validation method to use\n<\/span><span class=\"crayon-v\">cv<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-e\">KFold<\/span> <span class=\"crayon-sy\">(<\/span> <span class=\"crayon-v\">n_splits<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-cn\" style=\"color: #008000;\">5<\/span> <span class=\"crayon-sy\">,<\/span> <span class=\"crayon-v\">random_state<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-cn\" style=\"color: #008000;\">1<\/span> <span class=\"crayon-sy\">,<\/span> <span class=\"crayon-v\">shuffle<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-t\" style=\"color: #008000;\">True<\/span> <span class=\"crayon-sy\">)<\/span> \n\n<span style=\"color: #008080;\">#build multiple linear regression model\n<\/span>model = LinearRegression()\n\n<span style=\"color: #008080;\">#use LOOCV to evaluate model\n<\/span>scores = cross_val_score(model, X, y, scoring=' <span style=\"color: #008000;\">neg_mean_squared_error<\/span> ',\n                         cv=cv, n_jobs=-1)\n\n<span style=\"color: #008080;\">#view RMSE\n<\/span>sqrt(mean(absolute(scores)))\n\n4.284373111711816<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">\uacb0\uacfc\uc5d0\uc11c RMSE(\uc81c\uacf1\ud3c9\uade0\uc81c\uacf1\uadfc \uc624\ucc28)\uac00 <strong>4.284<\/strong> \uc784\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">RMSE\uac00 \ub0ae\uc744\uc218\ub85d \ubaa8\ub378\uc774 \uc2e4\uc81c \uad00\uce21\uce58\ub97c \ub354 \uc798 \uc608\uce21\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc2e4\uc81c\ub85c \uc6b0\ub9ac\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \uc5ec\ub7ec \uac00\uc9c0 \ubaa8\ub378\uc744 \uc801\ud569\ud558\uace0 \uac01 \ubaa8\ub378\uc758 RMSE \ub610\ub294 MAE\ub97c \ube44\uad50\ud558\uc5ec \ud14c\uc2a4\ud2b8 \uc624\ub958\uc728\uc774 \uac00\uc7a5 \ub0ae\uc740 \ubaa8\ub378\uc744 \uacb0\uc815\ud558\ubbc0\ub85c \uc0ac\uc6a9\ud558\uae30\uc5d0 \uac00\uc7a5 \uc88b\uc740 \ubaa8\ub378\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub610\ud55c \uc774 \uc608\uc5d0\uc11c\ub294 k=5 \ud3f4\ub4dc\ub97c \uc0ac\uc6a9\ud558\uae30\ub85c \uc120\ud0dd\ud588\uc9c0\ub9cc \uc6d0\ud558\ub294 \ub9cc\ud07c\uc758 \ud3f4\ub4dc \uc218\ub97c \uc120\ud0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc2e4\uc81c\ub85c \uc6b0\ub9ac\ub294 \uc77c\ubc18\uc801\uc73c\ub85c 5~10\uacb9 \uc0ac\uc774\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4. \uc774\ub294 \uc2e0\ub8b0\ud560 \uc218 \uc788\ub294 \ud14c\uc2a4\ud2b8 \uc624\ub958\uc728\uc744 \uc0dd\uc131\ud558\ub294 \ucd5c\uc801\uc758 \ud50c\ub77c\uc774 \uc218\uc784\uc774 \uc785\uc99d\ub418\uc5c8\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.KFold.html\" target=\"_blank\" rel=\"noopener noreferrer\">\uc5ec\uae30\uc5d0\uc11c<\/a> sklearn\uc758 KFold() \ud568\uc218\uc5d0 \ub300\ud55c \uc804\uccb4 \ubb38\uc11c\ub97c \ucc3e\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/em><\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\ucd94\uac00 \ub9ac\uc18c\uc2a4<\/strong><\/span><\/h3>\n<p> <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-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d \uc18c\uac1c<\/a><br \/> <a href=\"https:\/\/statorials.org\/ko\/\u1109\u1165\u11ab\u1112\u1167\u11bc-\u1112\u116c\u1100\u1171-\u1111\u1161\u110b\u1175\u110a\u1165\u11ab\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python\uc758 \uc120\ud615 \ud68c\uadc0\uc5d0 \ub300\ud55c \uc644\uc804\ud55c \uac00\uc774\ub4dc<\/a><br \/> <a href=\"https:\/\/statorials.org\/ko\/python\u110b\u1166\u1109\u1165-\u1100\u116d\u110e\u1161-\u110b\u1172\u1112\u116d\u1109\u1165\u11bc-\u1100\u1165\u11b7\u1109\u1161\u1105\u1173\u11af-\u1109\u116e\u1112\u1162\u11bc\u1112\u1161\u1103\u1169\u1105\u1169\u11a8-\u1112\u1161\u1109\u1166\u110b\u116d.\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python\uc758 Leave-One-Out \uad50\ucc28 \uac80\uc99d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub370\uc774\ud130 \uc138\ud2b8\uc5d0 \ub300\ud55c \ubaa8\ub378\uc758 \uc131\ub2a5\uc744 \ud3c9\uac00\ud558\ub824\uba74 \ubaa8\ub378\uc758 \uc608\uce21\uc774 \uad00\ucc30\ub41c \ub370\uc774\ud130\uc640 \uc5bc\ub9c8\ub098 \uc798 \uc77c\uce58\ud558\ub294\uc9c0 \uce21\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ub97c \uc218\ud589\ud558\uae30 \uc704\ud574 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ub418\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c \uc811\uadfc \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud558\ub294 k-\uacb9 \uad50\ucc28 \uac80\uc99d \uc73c\ub85c \uc54c\ub824\uc838 \uc788\uc2b5\ub2c8\ub2e4. 1. \ub370\uc774\ud130 \uc138\ud2b8\ub97c \ub300\ub7b5 \ub3d9\uc77c\ud55c \ud06c\uae30\uc758 k\uac1c \uadf8\ub8f9, \uc989 &#8220;\uc811\uae30&#8221;\ub85c \ubb34\uc791\uc704\ub85c \ub098\ub215\ub2c8\ub2e4. 2. \uc811\ud78c \ubd80\ubd84 \uc911 \ud558\ub098\ub97c \uad6c\uc18d \uc138\ud2b8\ub85c \uc120\ud0dd\ud569\ub2c8\ub2e4. \ud15c\ud50c\ub9bf\uc744 \ub098\uba38\uc9c0 k-1 \uc811\uae30\ub85c [&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-1176","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 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials<\/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 k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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-k-\u110c\u1165\u11b8\u1100\u1175-\u1100\u116d\u110e\u1161-\u1100\u1165\u11b7\u110c\u1173\u11bc\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\uc758 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials\" \/>\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 k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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-k-\u110c\u1165\u11b8\u1100\u1175-\u1100\u116d\u110e\u1161-\u1100\u1165\u11b7\u110c\u1173\u11bc\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T09:36:52+00:00\" \/>\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=\"1\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-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/\",\"url\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/\",\"name\":\"Python\uc758 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ko\/#website\"},\"datePublished\":\"2023-07-27T09:36:52+00:00\",\"dateModified\":\"2023-07-27T09:36:52+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 k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\uc9d1\",\"item\":\"https:\/\/statorials.org\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\uc758 k-fold \uad50\ucc28 \uac80\uc99d(\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 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials","description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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-k-\u110c\u1165\u11b8\u1100\u1175-\u1100\u116d\u110e\u1161-\u1100\u1165\u11b7\u110c\u1173\u11bc\/","og_locale":"ko_KR","og_type":"article","og_title":"Python\uc758 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials","og_description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ub2e8\uacc4\ubcc4 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec Python\uc5d0\uc11c k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","og_url":"https:\/\/statorials.org\/ko\/python\u110b\u1174-k-\u110c\u1165\u11b8\u1100\u1175-\u1100\u116d\u110e\u1161-\u1100\u1165\u11b7\u110c\u1173\u11bc\/","og_site_name":"Statorials","article_published_time":"2023-07-27T09:36:52+00:00","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":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/","url":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/","name":"Python\uc758 K-\ud3f4\ub4dc \uad50\ucc28 \uac80\uc99d(\ub2e8\uacc4\ubcc4) - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/ko\/#website"},"datePublished":"2023-07-27T09:36:52+00:00","dateModified":"2023-07-27T09:36:52+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 k-\uacb9 \uad50\ucc28 \uac80\uc99d\uc744 \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-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ko\/python%e1%84%8b%e1%85%b4-k-%e1%84%8c%e1%85%a5%e1%86%b8%e1%84%80%e1%85%b5-%e1%84%80%e1%85%ad%e1%84%8e%e1%85%a1-%e1%84%80%e1%85%a5%e1%86%b7%e1%84%8c%e1%85%b3%e1%86%bc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\uc9d1","item":"https:\/\/statorials.org\/ko\/"},{"@type":"ListItem","position":2,"name":"Python\uc758 k-fold \uad50\ucc28 \uac80\uc99d(\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\/1176","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=1176"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/1176\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/media?parent=1176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/categories?post=1176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/tags?post=1176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}