{"id":9993,"date":"2020-07-01T12:04:28","date_gmt":"2020-07-01T03:04:28","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=9993"},"modified":"2020-08-02T17:14:05","modified_gmt":"2020-08-02T08:14:05","slug":"%ec%84%a0%ed%98%95-%eb%aa%a8%eb%8d%b8%ec%9d%84-%ec%9d%b4%ec%9a%a9%ed%95%9c-n%ec%b0%a8-%eb%8b%a4%ed%95%ad%ec%8b%9d%ec%9d%98-%ed%9a%8c%ea%b7%80","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=9993","title":{"rendered":"\uc120\ud615 \ubaa8\ub378\uc744 \uc774\uc6a9\ud55c n\ucc28 \ub2e4\ud56d\uc2dd\uc758 \ud68c\uadc0"},"content":{"rendered":"\n<p>\uc120\ud615 \ubaa8\ub378\uc740 1\ucc28 \ub2e4\ud56d\uc2dd\uc778 \uc9c1\uc120\uc5d0 \ub300\ud55c \ubaa8\ub378 \ub9cc\uc744 \uc608\uce21\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub807\ub2e4\uba74 \uc9c1\uc120\uc774 \uc544\ub2cc \uace1\uc120, \uc989 2\ucc28 \ub2e4\ud56d\uc2dd \uc774\uc0c1\uc758 \ubaa8\ub378\uc744 \uc608\uce21\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc120\ud615 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\ub2e4\uace0 \uc0dd\uac01\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \uc0dd\uac01\uacfc\ub294 \ub2e4\ub974\uac8c \uc120\ud615 \ubaa8\ub378\ub85c\ub3c4 2\ucc28 \ub2e4\ud56d\uc2dd \uc774\uc0c1\uc758 \ubaa8\ub378\ub3c4 \uc608\uce21\ud560 \uc218 \uc788\ub294\ub370, \uc774\ub294 \uc57d\uac04\uc758 \ubc1c\uc0c1\uc758 \uc804\ud658\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uc989, \uc120\ud615 \ubaa8\ub378\uc758 \uacbd\uc6b0 \ud2b9\uc9d5 \ubcc0\uc218\uac00 1\ucc28\ub85c \ub2e4\ud56d\uc2dd\uc73c\ub85c\ub9cc \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub9cc\uc57d x^2\uc640 \uac19\uc740 \uac70\ub4ed\uc81c\uacf1\uc778 2\ucc28\uc2dd\uc758 \uacbd\uc6b0\uc77c\ub54c \ub354 \uc774\uc0c1 \uc120\ud615 \ubaa8\ub378\uc774 \uc544\ub2c8\uac8c \ub418\uc9c0\ub9cc, x^2\uc744 z\ub77c\ub294 1\ucc28 \ub2e4\ud56d\uc2dd\uc73c\ub85c \ucde8\uae09\ud558\uac8c \ub418\uba74 \uc120\ud615 \ubaa8\ub378\ub85c\ub3c4 2\ucc28 \uc774\uc0c1\uc758 \ub2e4\ud56d\uc2dd\ub3c4 \ud68c\uadc0\ubd84\uc11d\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>\ub2e4\uc74c\uc758 \ucf54\ub4dc\ub294 3\ucc28 \ub2e4\ud56d\uc2dd\uc5d0 \ub300\ud55c \ud68c\uadc0\ubd84\uc11d\uc5d0 \ub300\ud55c \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom sklearn.preprocessing import PolynomialFeatures\r\nfrom sklearn.linear_model import LinearRegression\r\n\r\nnp.random.seed(3224)\r\nm = 100\r\nX = 10 * np.random.rand(m, 1) - 5\r\ny = (-0.8 * X**3) + (0.5 * X**2) + (2 * X) - 3 + (np.random.randn(m, 1) * 10)\r\n\r\npoly_features = PolynomialFeatures(degree=3, include_bias=False)\r\nX_poly = poly_features.fit_transform(X)\r\n\r\nmodel = LinearRegression()\r\nmodel.fit(X_poly, y)\r\n\r\nX_new = np.linspace(-5, 5, 20).reshape(20, 1)\r\nX_new_poly = poly_features.transform(X_new)\r\ny_new = model.predict(X_new_poly)\r\n\r\nplt.plot(X, y, \"b.\")\r\nplt.plot(X_new, y_new, \"r-\")\r\nplt.show()\r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2020\/07\/poly_regression.png\" alt=\"\" width=\"2098\" height=\"1718\" class=\"aligncenter size-full wp-image-9996\" \/><\/p>\n<p>\ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uba74, 6-9\ub294 \uc7a1\uc74c\uc774 \uc11e\uc778 \uc0d8\ud50c \ub370\uc774\ud130\ub294 3\ucc28 \ub2e4\ud56d\uc2dd\uc758 \ud615\ud0dc\ub85c \uad6c\uc131\ud569\ub2c8\ub2e4. 11-12\ub294 1\uac1c\uc758 \ud2b9\uc131\uc744 2\ucc28\ud56d\uacfc 3\ucc28\ud56d\uc5d0 \ub300\ud55c \ub3c5\ub9bd\uc801\uc778 \ud2b9\uc131\uc744 \ucd94\uac00\ub85c \uc0dd\uc131\ud574 \uc90d\ub2c8\ub2e4. \uc989, \ud2b9\uc131\uac12\uc774 2\ub77c\uba74 4\uc640 8\uc774\ub77c\ub294 \ud2b9\uc131\uac12\uc774 \uc0dd\uc131\ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc120\ud615 \ubaa8\ub378\uc740 1\ucc28 \ub2e4\ud56d\uc2dd\uc778 \uc9c1\uc120\uc5d0 \ub300\ud55c \ubaa8\ub378 \ub9cc\uc744 \uc608\uce21\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub807\ub2e4\uba74 \uc9c1\uc120\uc774 \uc544\ub2cc \uace1\uc120, \uc989 2\ucc28 \ub2e4\ud56d\uc2dd \uc774\uc0c1\uc758 \ubaa8\ub378\uc744 \uc608\uce21\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc120\ud615 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\ub2e4\uace0 \uc0dd\uac01\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \uc0dd\uac01\uacfc\ub294 \ub2e4\ub974\uac8c \uc120\ud615 \ubaa8\ub378\ub85c\ub3c4 2\ucc28 \ub2e4\ud56d\uc2dd \uc774\uc0c1\uc758 \ubaa8\ub378\ub3c4 \uc608\uce21\ud560 \uc218 \uc788\ub294\ub370, \uc774\ub294 \uc57d\uac04\uc758 \ubc1c\uc0c1\uc758 \uc804\ud658\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uc989, \uc120\ud615 \ubaa8\ub378\uc758 \uacbd\uc6b0 \ud2b9\uc9d5 \ubcc0\uc218\uac00 1\ucc28\ub85c \ub2e4\ud56d\uc2dd\uc73c\ub85c\ub9cc &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=9993\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc120\ud615 \ubaa8\ub378\uc744 \uc774\uc6a9\ud55c n\ucc28 \ub2e4\ud56d\uc2dd\uc758 \ud68c\uadc0&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[],"class_list":["post-9993","post","type-post","status-publish","format-standard","hentry","category-deep-machine-learning"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9993"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9993\/revisions"}],"predecessor-version":[{"id":9997,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9993\/revisions\/9997"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9993"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}