{"id":29918,"date":"2024-10-28T03:18:39","date_gmt":"2024-10-28T03:18:39","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=29918"},"modified":"2024-11-26T06:50:52","modified_gmt":"2024-11-26T06:50:52","slug":"%eb%94%a5%eb%9f%ac%eb%8b%9d-%ed%8c%8c%ec%9d%b4%ed%86%a0%ec%b9%98-%ea%b0%95%ec%a2%8c-k-%ec%b5%9c%ea%b7%bc%ec%a0%91-%ec%9d%b4%ec%9b%83","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/29918\/","title":{"rendered":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3"},"content":{"rendered":"<p><body><\/p>\n<p>\n        K-\ucd5c\uadfc\uc811 \uc774\uc6c3(K-Nearest Neighbors, KNN)\uc740 \uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd\uc5d0\uc11c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uace0 \uc9c1\uad00\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c,<br \/>\n        \uc8fc\uc5b4\uc9c4 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8\uc5d0 \ub300\ud574 \uac00\uc7a5 \uac00\uae4c\uc6b4 K\uac1c\uc758 \uc774\uc6c3\uc744 \ucc3e\uace0 \uadf8 \uc774\uc6c3\ub4e4\uc758 \ub77c\ubca8\uc5d0 \ub530\ub77c \uc608\uce21\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<br \/>\n        KNN\uc740 \uc8fc\ub85c \ubd84\ub958 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub418\uc9c0\ub9cc \ud68c\uadc0 \ubb38\uc81c\uc5d0\ub3c4 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>1. KNN\uc758 \uae30\ubcf8 \uc6d0\ub9ac<\/h2>\n<p>\n        KNN \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8\uc801\uc778 \uc544\uc774\ub514\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc8fc\uc5b4\uc9c4 \uc0d8\ud50c\uc744 \ubd84\ub958\ud558\uace0\uc790 \ud560 \ub54c,<br \/>\n        \ud574\ub2f9 \uc0d8\ud50c\uacfc \uac00\uc7a5 \uac00\uae4c\uc6b4 K\uac1c\uc758 \ub370\uc774\ud130\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4. \uc774 K\uac1c\uc758 \ub370\uc774\ud130\uac00 \uc8fc\ub294<br \/>\n        \uc815\ubcf4\ub97c \uae30\ubc18\uc73c\ub85c \uc0c8\ub85c\uc6b4 \uc0d8\ud50c\uc758 \ub77c\ubca8\uc744 \uacb0\uc815\ud569\ub2c8\ub2e4.<br \/>\n        \uc608\ub97c \ub4e4\uc5b4, K\uac00 3\uc774\ub77c\uba74, \uc8fc\uc5b4\uc9c4 \uc0d8\ud50c\uc5d0 \uac00\uc7a5 \uac00\uae4c\uc6b4 3\uac1c\uc758 \uc774\uc6c3\uc758 \ub77c\ubca8\uc744 \ud655\uc778\ud558\uace0,<br \/>\n        \uadf8 \uc911 \uac00\uc7a5 \ub9ce\uc740 \ub77c\ubca8\uc774 \uc120\ud0dd\ub429\ub2c8\ub2e4.\n    <\/p>\n<h3>1.1 \uac70\ub9ac \uce21\uc815 \ubc29\ubc95<\/h3>\n<p>\n        KNN\uc5d0\uc11c \uc774\uc6c3\uc744 \ucc3e\uae30 \uc704\ud574\uc11c\ub294 \ub450 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8 \uac04\uc758 \uac70\ub9ac\ub97c \uce21\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\n        \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ub418\ub294 \uac70\ub9ac \uce21\uc815 \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc720\ud074\ub9ac\ub4dc \uac70\ub9ac (Euclidean Distance)<\/strong>: \ub450 \uc810 (x1, y1)\uacfc (x2, y2) \uac04\uc758 \uac70\ub9ac\ub85c \uc815\uc758\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\ub9e8\ud558\ud0c4 \uac70\ub9ac (Manhattan Distance)<\/strong>: \ub450 \uc810 \uac04\uc758 \uac70\ub9ac\uc758 \uc808\ub300\uac12 \ud569\uc73c\ub85c \uc815\uc758\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\ubbf8\uc138\ud55c \uac70\ub9ac (Minkowski Distance)<\/strong>: \uc77c\ubc18\ud654\ub41c \uac70\ub9ac \ucc99\ub3c4\ub85c, \uc720\ud074\ub9ac\ub4dc\uc640 \ub9e8\ud558\ud0c4 \uac70\ub9ac\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. KNN\uc758 \uc7a5\ub2e8\uc810<\/h2>\n<h3>2.1 \uc7a5\uc810<\/h3>\n<ul>\n<li>\uad6c\ud604\uc774 \uac04\ub2e8\ud558\uace0 \uc9c1\uad00\uc801\uc785\ub2c8\ub2e4.<\/li>\n<li>\ubaa8\ub378 \ud559\uc2b5\uc774 \ud544\uc694 \uc5c6\uae30 \ub54c\ubb38\uc5d0 \uc989\uc2dc \uc608\uce21\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ube44\uc120\ud615 \ub370\uc774\ud130\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc88b\uc740 \uc131\ub2a5\uc744 \ubcf4\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>2.2 \ub2e8\uc810<\/h3>\n<ul>\n<li>\ub300\uaddc\ubaa8 \ub370\uc774\ud130\uc14b\uc5d0\uc11c\ub294 \uc608\uce21 \uc18d\ub3c4\uac00 \ub290\ub824\uc9d1\ub2c8\ub2e4.<\/li>\n<li>K \uac12\uc758 \uc120\ud0dd\uc774 \uacb0\uacfc\uc5d0 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4.<\/li>\n<li>\uace0\ucc28\uc6d0 \ub370\uc774\ud130\uc5d0\uc11c \uc131\ub2a5\uc774 \ub5a8\uc5b4\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. (\ucc28\uc6d0\uc758 \uc800\uc8fc)<\/li>\n<\/ul>\n<h2>3. KNN\uc744 \ud30c\uc774\ud1a0\uce58\ub85c \uad6c\ud604\ud558\uae30<\/h2>\n<p>\n        \uc774 \uc139\uc158\uc5d0\uc11c\ub294 PyTorch\ub97c \uc0ac\uc6a9\ud558\uc5ec KNN\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc774\ub97c \uc704\ud574 \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uace0, \ud544\uc694\ud55c \ub370\uc774\ud130\uc14b\uc744 \uc900\ube44\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>3.1 \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac \uc124\uce58<\/h3>\n<pre>\n    <code>\n    pip install torch numpy scikit-learn\n    <\/code>\n    <\/pre>\n<h3>3.2 \ub370\uc774\ud130\uc14b \uc900\ube44<\/h3>\n<p>\n        \uc720\ubc29\uc554 \ub370\uc774\ud130\uc14b\uc744 \uc0ac\uc6a9\ud558\uc5ec KNN\uc744 \uad6c\ud604\ud560 \uac83\uc785\ub2c8\ub2e4.<br \/>\n        scikit-learn\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \uc720\ubc29\uc554 \ub370\uc774\ud130\uc14b\uc744 \ubd88\ub7ec\uc624\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre>\n    <code>\n    import numpy as np\n    import torch\n    from sklearn.datasets import load_breast_cancer\n    from sklearn.model_selection import train_test_split\n    from sklearn.preprocessing import StandardScaler\n    \n    # \ub370\uc774\ud130\uc14b \ub85c\ub4dc\n    data = load_breast_cancer()\n    X = data.data\n    y = data.target\n    \n    # \ub370\uc774\ud130\uc14b \ubd84\ud560 (\ud6c8\ub828\/\ud14c\uc2a4\ud2b8)\n    X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)\n    \n    # \ub370\uc774\ud130 \uc815\uaddc\ud654\n    scaler = StandardScaler()\n    X_train = scaler.fit_transform(X_train)\n    X_test = scaler.transform(X_test)\n    <\/code>\n    <\/pre>\n<h3>3.3 KNN \uc54c\uace0\ub9ac\uc998 \uad6c\ud604<\/h3>\n<p>\n        \uc774\uc81c KNN \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n        \uba3c\uc800, KNN\uc744 \uc218\ud589\ud558\ub294 \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre>\n    <code>\n    class KNN:\n        def __init__(self, k=3):\n            self.k = k\n            \n        def fit(self, X, y):\n            self.X_train = X\n            self.y_train = y\n            \n        def predict(self, X):\n            distances = []\n            \n            for x in X:\n                distance = np.sqrt(np.sum((self.X_train - x) ** 2, axis=1))\n                distances.append(distance)\n                \n            distances = np.array(distances)\n            neighbors = np.argsort(distances)[:, :self.k]\n            return np.array([self.y_train[neighbor].mode()[0] for neighbor in neighbors])\n    <\/code>\n    <\/pre>\n<h3>3.4 \ubaa8\ub378 \ud559\uc2b5 \ubc0f \uc608\uce21<\/h3>\n<p>\n        KNN \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud559\uc2b5\ud558\uace0 \uc608\uce21\ud558\ub294 \uacfc\uc815\uc744 \ubcf4\uc5ec\ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre>\n    <code>\n    # KNN \ubaa8\ub378 \uc0dd\uc131\n    knn = KNN(k=3)\n    \n    # \ud6c8\ub828 \ub370\uc774\ud130\ub85c \ubaa8\ub378 \uc801\ud569\n    knn.fit(X_train, y_train)\n    \n    # \ud14c\uc2a4\ud305 \ub370\uc774\ud130\ub85c \uc608\uce21\n    predictions = knn.predict(X_test)\n    \n    # \uc815\ud655\ub3c4 \uacc4\uc0b0\n    accuracy = np.mean(predictions == y_test)\n    print(f'\ubaa8\ub378 \uc815\ud655\ub3c4: {accuracy * 100:.2f}%')\n    <\/code>\n    <\/pre>\n<h2>4. KNN\uc744 \uac1c\uc120\ud558\uae30<\/h2>\n<p>\n        KNN\uc758 \uc131\ub2a5\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uba87 \uac00\uc9c0 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc608\ub97c \ub4e4\uc5b4, K \uac12\uc744 \uc870\uc815\ud558\uac70\ub098 \uac70\ub9ac \ucc99\ub3c4\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ub610\ud55c, \ub370\uc774\ud130\uc758 \ucc28\uc6d0\uc744 \ucd95\uc18c\ud558\uc5ec \uc131\ub2a5\uc744 \uac1c\uc120\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>4.1 K \uac12 \uc870\uc815<\/h3>\n<p>\n        K \uac12\uc740 KNN \uc54c\uace0\ub9ac\uc998\uc758 \uc131\ub2a5\uc5d0 \ud06c\uac8c \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4.<br \/>\n        K \uac12\uc744 \ub108\ubb34 \uc791\uac8c \uc124\uc815\ud558\uba74 \uacfc\uc801\ud569(overfitting)\uc774 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc73c\uba70,<br \/>\n        \ub108\ubb34 \ud06c\uac8c \uc124\uc815\ud558\uba74 \uc77c\ubc18\ud654 \uc131\ub2a5\uc774 \ub5a8\uc5b4\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ub530\ub77c\uc11c Cross-Validation \uae30\ubc95\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucd5c\uc801\uc758 K \uac12\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>4.2 \uac70\ub9ac \ucc99\ub3c4 \ubcc0\uacbd<\/h3>\n<p>\n        \uc720\ud074\ub9ac\ub4dc \uac70\ub9ac \uc678\uc5d0\ub3c4 \ub9e8\ud558\ud0c4 \uac70\ub9ac, \ubbf8\uc138\ud55c \uac70\ub9ac \ub4f1\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc2e4\ud5d8\uc744 \ud1b5\ud574 \uac00\uc7a5 \uc801\uc808\ud55c \uac70\ub9ac \uce21\uc815 \ubc29\ubc95\uc744 \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>4.3 \ucc28\uc6d0 \ucd95\uc18c<\/h3>\n<p>\n        PCA(\uc8fc\uc131\ubd84 \ubd84\uc11d)\uc640 \uac19\uc740 \ucc28\uc6d0 \ucd95\uc18c \uae30\ubc95\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\uc758 \ucc28\uc6d0\uc744 \uc904\uc774\uba74<br \/>\n        KNN\uc758 \uc131\ub2a5\uc774 \ud5a5\uc0c1\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ucc28\uc6d0\uc774 \ub192\uc740 \uacbd\uc6b0 \ub370\uc774\ud130\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \uc774\ud574\ud558\uae30 \uc5b4\ub824\uc6b8 \ubfd0 \uc544\ub2c8\ub77c,<br \/>\n        \uacc4\uc0b0\uc758 \ubcf5\uc7a1\uc131\ub3c4 \uc99d\uac00\ud558\uac8c \ub429\ub2c8\ub2e4.\n    <\/p>\n<h2>5. KNN\uacfc \ub525\ub7ec\ub2dd\uc758 \uad00\uacc4<\/h2>\n<p>\n        KNN \uc54c\uace0\ub9ac\uc998\uc740 \ub525\ub7ec\ub2dd\uacfc \ud568\uaed8 \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc608\ub97c \ub4e4\uc5b4, \ub525\ub7ec\ub2dd \ubaa8\ub378\uc758 \ucd9c\ub825\uc744 KNN\uc758 \uae30\ubcf8 \ub808\uc774\uc5b4\uc5d0 \uc5f0\uacb0\ud558\uc5ec<br \/>\n        \ubcf4\ub2e4 \ud6a8\uc728\uc801\uc778 \ubd84\ub958\uae30(classifier)\ub85c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ub610\ud55c, KNN\uc758 \uc774\uc6c3 \ub370\uc774\ud130\uc5d0\uc11c \uc815\ubcf4\ub97c \ucd94\ucd9c\ud558\uc5ec \ub525\ub7ec\ub2dd\uc758 \ud2b9\uc131(feature)\uc73c\ub85c \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>6. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\n        K-\ucd5c\uadfc\uc811 \uc774\uc6c3(KNN)\uc740 \uba38\uc2e0\ub7ec\ub2dd\uc758 \uae30\ubcf8\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c,<br \/>\n        \uadf8 \uad6c\ud604\uacfc \uc774\ud574\uac00 \ub9e4\uc6b0 \uc27d\uc2b5\ub2c8\ub2e4.<br \/>\n        \ud558\uc9c0\ub9cc \uc54c\uace0\ub9ac\uc998\uc758 \ub2e8\uc810\ub4e4, \ud2b9\ud788 \ub300\uaddc\ubaa8 \ub370\uc774\ud130\uc14b\uacfc \uace0\ucc28\uc6d0 \ub370\uc774\ud130\uc5d0\uc11c\uc758<br \/>\n        \uc131\ub2a5 \ubb38\uc81c\ub97c \uc774\ud574\ud558\uace0 \uc774\ub97c \uac1c\uc120\ud558\ub294 \ubc29\ubc95\uc744 \uc544\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<br \/>\n        \uc774 \uae00\uc744 \ud1b5\ud574 KNN\uc5d0 \ub300\ud55c \uae30\ucd08 \uc9c0\uc2dd\uc744 \uc313\uace0,<br \/>\n        PyTorch\ub97c \ud1b5\ud574 KNN\uc744 \uc2e4\uc81c\ub85c \uad6c\ud604\ud574\ubcf4\ub294 \uae30\ud68c\ub97c \uac00\uc9c0\uc168\uae38 \ubc14\ub78d\ub2c8\ub2e4.\n    <\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>K-\ucd5c\uadfc\uc811 \uc774\uc6c3(K-Nearest Neighbors, KNN)\uc740 \uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd\uc5d0\uc11c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uace0 \uc9c1\uad00\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8\uc5d0 \ub300\ud574 \uac00\uc7a5 \uac00\uae4c\uc6b4 K\uac1c\uc758 \uc774\uc6c3\uc744 \ucc3e\uace0 \uadf8 \uc774\uc6c3\ub4e4\uc758 \ub77c\ubca8\uc5d0 \ub530\ub77c \uc608\uce21\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. KNN\uc740 \uc8fc\ub85c \ubd84\ub958 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub418\uc9c0\ub9cc \ud68c\uadc0 \ubb38\uc81c\uc5d0\ub3c4 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 1. KNN\uc758 \uae30\ubcf8 \uc6d0\ub9ac KNN \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8\uc801\uc778 \uc544\uc774\ub514\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc8fc\uc5b4\uc9c4 \uc0d8\ud50c\uc744 \ubd84\ub958\ud558\uace0\uc790 \ud560 \ub54c, \ud574\ub2f9 \uc0d8\ud50c\uacfc \uac00\uc7a5 \uac00\uae4c\uc6b4 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/29918\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[33],"tags":[],"class_list":["post-29918","post","type-post","status-publish","format-standard","hentry","category-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/29918\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"K-\ucd5c\uadfc\uc811 \uc774\uc6c3(K-Nearest Neighbors, KNN)\uc740 \uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd\uc5d0\uc11c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uace0 \uc9c1\uad00\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8\uc5d0 \ub300\ud574 \uac00\uc7a5 \uac00\uae4c\uc6b4 K\uac1c\uc758 \uc774\uc6c3\uc744 \ucc3e\uace0 \uadf8 \uc774\uc6c3\ub4e4\uc758 \ub77c\ubca8\uc5d0 \ub530\ub77c \uc608\uce21\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. KNN\uc740 \uc8fc\ub85c \ubd84\ub958 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub418\uc9c0\ub9cc \ud68c\uadc0 \ubb38\uc81c\uc5d0\ub3c4 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 1. KNN\uc758 \uae30\ubcf8 \uc6d0\ub9ac KNN \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8\uc801\uc778 \uc544\uc774\ub514\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc8fc\uc5b4\uc9c4 \uc0d8\ud50c\uc744 \ubd84\ub958\ud558\uace0\uc790 \ud560 \ub54c, \ud574\ub2f9 \uc0d8\ud50c\uacfc \uac00\uc7a5 \uac00\uae4c\uc6b4 &hellip; \ub354 \ubcf4\uae30 &quot;\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/29918\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-28T03:18:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:50:52+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\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\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3\",\"datePublished\":\"2024-10-28T03:18:39+00:00\",\"dateModified\":\"2024-11-26T06:50:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/\"},\"wordCount\":57,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ud30c\uc774\ud1a0\uce58 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/\",\"url\":\"https:\/\/atmokpo.com\/w\/29918\/\",\"name\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-28T03:18:39+00:00\",\"dateModified\":\"2024-11-26T06:50:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/29918\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/29918\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/29918\/","og_locale":"ko_KR","og_type":"article","og_title":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"K-\ucd5c\uadfc\uc811 \uc774\uc6c3(K-Nearest Neighbors, KNN)\uc740 \uba38\uc2e0\ub7ec\ub2dd \ubc0f \ub525\ub7ec\ub2dd\uc5d0\uc11c \ub9e4\uc6b0 \uac04\ub2e8\ud558\uace0 \uc9c1\uad00\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc8fc\uc5b4\uc9c4 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8\uc5d0 \ub300\ud574 \uac00\uc7a5 \uac00\uae4c\uc6b4 K\uac1c\uc758 \uc774\uc6c3\uc744 \ucc3e\uace0 \uadf8 \uc774\uc6c3\ub4e4\uc758 \ub77c\ubca8\uc5d0 \ub530\ub77c \uc608\uce21\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. KNN\uc740 \uc8fc\ub85c \ubd84\ub958 \ubb38\uc81c\uc5d0 \uc0ac\uc6a9\ub418\uc9c0\ub9cc \ud68c\uadc0 \ubb38\uc81c\uc5d0\ub3c4 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 1. KNN\uc758 \uae30\ubcf8 \uc6d0\ub9ac KNN \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8\uc801\uc778 \uc544\uc774\ub514\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc8fc\uc5b4\uc9c4 \uc0d8\ud50c\uc744 \ubd84\ub958\ud558\uace0\uc790 \ud560 \ub54c, \ud574\ub2f9 \uc0d8\ud50c\uacfc \uac00\uc7a5 \uac00\uae4c\uc6b4 &hellip; \ub354 \ubcf4\uae30 \"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3\"","og_url":"https:\/\/atmokpo.com\/w\/29918\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-28T03:18:39+00:00","article_modified_time":"2024-11-26T06:50:52+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/29918\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/29918\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3","datePublished":"2024-10-28T03:18:39+00:00","dateModified":"2024-11-26T06:50:52+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/29918\/"},"wordCount":57,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ud30c\uc774\ud1a0\uce58 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/29918\/","url":"https:\/\/atmokpo.com\/w\/29918\/","name":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-28T03:18:39+00:00","dateModified":"2024-11-26T06:50:52+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/29918\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/29918\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/29918\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ub525\ub7ec\ub2dd \ud30c\uc774\ud1a0\uce58 \uac15\uc88c, K-\ucd5c\uadfc\uc811 \uc774\uc6c3"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=29918"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29918\/revisions"}],"predecessor-version":[{"id":29919,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/29918\/revisions\/29919"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=29918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=29918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=29918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}