{"id":11764,"date":"2021-11-24T05:05:29","date_gmt":"2021-11-23T20:05:29","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=11764"},"modified":"2021-11-24T07:05:15","modified_gmt":"2021-11-23T22:05:15","slug":"%eb%b6%84%ec%84%9d%ec%9d%98-%ed%95%b5%ec%8b%ac%ec%9d%80-%ec%8b%9c%ea%b0%81%ed%99%94","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=11764","title":{"rendered":"\ubd84\uc11d\uc758 \ud575\uc2ec\uc740 \uc2dc\uac01\ud654\ub2e4."},"content":{"rendered":"<p>\uba3c\uc800 \uc774 \uae00\uc740 \uc0ac\uc774\ud1a0 \uace0\ud0a4\uc758 \uc138\ubc88\uc9f8 \ub525\ub7ec\ub2dd \uc11c\uc801\uc778 Deep Learning from Scratch\uc5d0 \ub300\ud55c \ub0b4\uc6a9(p225)\uc758 \ucf54\ub4dc\uc758 \ubcc0\ud615\ub41c \ub0b4\uc6a9\uc744 \uc5b8\uae09\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ucc45\uc740 \ud150\uc11c\ud50c\ub85c\ub098 \ud30c\uc774\ud1a0\uce58 \uc790\uccb4\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud55c \ud575\uc2ec \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc740 \uc774 \ucc45\uc5d0\uc11c \ub2e4\ub8e8\ub294 \ub0b4\uc6a9 \uc911 \uc5ed\uc804\ud30c\uc5d0 \ub300\ud55c \uc2dc\uac01\ud654\ub97c \ubcf4\uc5ec\uc8fc\ub294 \ucf54\ub4dc\ub97c \ud1a0\ub300\ub85c \uc5b4\ub5a4 \uc218\uc2dd\uc5d0 \ub300\ud55c \uc5ed\uc804\ud30c\ub97c \ud1b5\ud574 \ubbf8\ubd84\uac12\uc744 \uacc4\uc0b0\ud558\ub294\ub370 \uc218\ud589\ub418\ub294 \uacc4\uc0b0 \ud750\ub984\uc744 \uc2dc\uac01\ud654\ud558\ub294 \ub0b4\uc6a9\uc774\uba70 \uc2dc\uac01\ud654\uc5d0 \ub300\ud55c \uc911\uc694\uc131\uc744 \uc5b8\uae09\ud569\ub2c8\ub2e4.<\/p>\n<p>sin \ud568\uc218\uc758 \ubbf8\ubd84\uc740 \ud574\uc11d\uc801\uc73c\ub85c \ubcfc \ub54c cos\uc785\ub2c8\ub2e4. \ub2e4\ub978 \ubc29\ubc95\uc73c\ub85c \ud14c\uc77c\ub7ec \uae09\uc218\ub97c \uc774\uc6a9\ud574\uc11c\ub3c4 \ubbf8\ubd84\uac12\uc744 \uad6c\ud560 \uc218 \uc788\uace0 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\ndef my_sin(x, threshold=0.00001):\r\n    y = 0\r\n    for i in range(100000):\r\n        c = (-1) ** i \/ math.factorial(2 * i + 1)\r\n        c = Variable(np.array(c))\r\n        c.name = \"c\"\r\n        t = c * x ** (2 * i + 1)\r\n        y = y + t\r\n        if abs(t.data) < threshold:\r\n            break\r\n    return y\r\n<\/pre>\n<p>\uc704\uc758 sin \uac12\uc744 \uc5bb\uae30 \uc704\ud55c \ud568\uc218\ub97c \uc2e4\ud589\ud558\uace0, \ubbf8\ubd84\uac12\uc744 \uc5bb\uae30 \uc704\ud55c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nx = Variable(np.array(np.pi\/4), \"x\")  \r\ny = my_sin(x)\r\ny.name = \"y\"\r\ny.backward()\r\n\r\nprint(y.data)\r\nprint(x.grad)\r\n\r\nplot_dot_graph(y, verbose=False, to_file=\"diagram.svg\")\r\n<\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub418\uba74 PI\/4\uc5d0 \ub300\ud55c sin \uac12\uacfc PI\/4\uc5d0 \ub300\ud55c sin \ubbf8\ubd84\uac12\uc774 \uc5bb\uc5b4\uc9d1\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ubbf8\ubd84\uac12\uc744 \uc5bb\uae30 \uc704\ud574 \uacc4\uc0b0\ub41c \ucc98\ub9ac \uacfc\uc815\uc774 \ub2e4\uc74c\ucc98\ub7fc diagram.svg\uc73c\ub85c \uc2dc\uac01\ud654\ub429\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2021\/11\/dps_diagram.png\" alt=\"\" width=\"942\" height=\"1403\" class=\"aligncenter size-full wp-image-11765\" \/><\/p>\n<p>\ud14c\uc77c\ub7ec \uae09\uc218\ub97c \ud1b5\ud55c sin \uac12\uc744 \uc5bb\uae30 \uc704\ud55c \uc2e4\uc81c \uacc4\uc0b0\uc758 \ud750\ub984\uc740 \uc704\uc758 \uc2dc\uac01\ud654\ub97c \ud1b5\ud574 \uc880 \ub354 \uc774\ud574\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc2dc\uac01\ud654\ub294 \uc774\ucc98\ub7fc \ubb34\uc5b8\uac00\ub97c \uc880 \ub354 \uc774\ud574\ud558\uace0, \uc774\ub7ec\ud55c \uacfc\uc815\uc744 \ud1b5\ud574 \ub354 \uae4a\uace0 \uc815\ud655\ud558\uac8c \uc774\ud574\ud560 \uc218 \uc788\ub294 \uae30\ud68c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub610\ud55c \uc774\ub7ec\ud55c \uc774\ud574\ub97c \ud1b5\ud574 \ub354 \ub098\uc740 \ubc29\ubc95\uc744 \ucc3e\uc744 \uc218 \uc788\ub294 \ucd5c\uc801\ud654\uc640 \uadf8 \ub2e4\uc74c \ub2e8\uacc4\ub85c \ub098\uc544\uac08 \uc218 \uc788\ub294 \uc785\uad6c\ub97c \ub9c8\ub828\ud574 \uc90d\ub2c8\ub2e4. \ubd84\uc11d\uc740 \uc5b4\ub5a4 \ubcf5\uc7a1\ud55c \ud604\uc0c1\uc744 \ubcf4\ub2e4 \uc27d\uac8c \uc774\ud574\ud558\uae30 \uc704\ud574 \uc791\uc740 \uac83\ub4e4\ub85c \ub098\ub220 \ud480\uc5b4 \ub193\ub294 \uc791\uc5c5\uc774\ub77c\uace0 \ud560 \ub54c \ubd84\uc11d\uc5d0\uc11c \ub9e4\uc6b0 \uc911\uc694\ud55c \ud575\uc2ec \ub3c4\uad6c\ub294 \uc2dc\uac01\ud654\uc785\ub2c8\ub2e4. \uc2dc\uac01\ud654\uac00 \ub418\uc9c0 \ubabb\ud55c \ubd84\uc11d\uc740 \ud0c0\uc778\uc744 \uc774\ud574 \uc2dc\ud0a4\uae30\ub3c4 \ud798\ub4e4 \ubfd0\ub354\ub7ec \uacfc\uc5f0 \uadf8 \ubd84\uc11d\uc774 \uc815\ud655\ud788 \uc774\ub904\uc84c\ub294\uc9c0\ub3c4 \ud655\uc778\ud558\uae30 \uc5b4\ub835\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uba3c\uc800 \uc774 \uae00\uc740 \uc0ac\uc774\ud1a0 \uace0\ud0a4\uc758 \uc138\ubc88\uc9f8 \ub525\ub7ec\ub2dd \uc11c\uc801\uc778 Deep Learning from Scratch\uc5d0 \ub300\ud55c \ub0b4\uc6a9(p225)\uc758 \ucf54\ub4dc\uc758 \ubcc0\ud615\ub41c \ub0b4\uc6a9\uc744 \uc5b8\uae09\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ucc45\uc740 \ud150\uc11c\ud50c\ub85c\ub098 \ud30c\uc774\ud1a0\uce58 \uc790\uccb4\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud55c \ud575\uc2ec \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc740 \uc774 \ucc45\uc5d0\uc11c \ub2e4\ub8e8\ub294 \ub0b4\uc6a9 \uc911 \uc5ed\uc804\ud30c\uc5d0 \ub300\ud55c \uc2dc\uac01\ud654\ub97c \ubcf4\uc5ec\uc8fc\ub294 \ucf54\ub4dc\ub97c \ud1a0\ub300\ub85c \uc5b4\ub5a4 \uc218\uc2dd\uc5d0 \ub300\ud55c \uc5ed\uc804\ud30c\ub97c \ud1b5\ud574 \ubbf8\ubd84\uac12\uc744 \uacc4\uc0b0\ud558\ub294\ub370 \uc218\ud589\ub418\ub294 \uacc4\uc0b0 \ud750\ub984\uc744 \uc2dc\uac01\ud654\ud558\ub294 \ub0b4\uc6a9\uc774\uba70 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=11764\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ubd84\uc11d\uc758 \ud575\uc2ec\uc740 \uc2dc\uac01\ud654\ub2e4.&#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":[1],"tags":[],"class_list":["post-11764","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11764","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=11764"}],"version-history":[{"count":7,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11764\/revisions"}],"predecessor-version":[{"id":11773,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11764\/revisions\/11773"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11764"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}