{"id":8285,"date":"2019-10-18T10:33:21","date_gmt":"2019-10-18T01:33:21","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=8285"},"modified":"2020-05-28T10:10:14","modified_gmt":"2020-05-28T01:10:14","slug":"%ed%95%a8%ec%88%98%eb%93%a4%ec%97%90-%eb%8c%80%ed%95%9c-%ea%b7%b8%eb%9e%98%ed%94%84-%ec%8b%9c%ea%b0%81%ed%99%94","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=8285","title":{"rendered":"\ud568\uc218\ub4e4\uc5d0 \ub300\ud55c \uadf8\ub798\ud504 \uc2dc\uac01\ud654"},"content":{"rendered":"<p>\uc120\ud615 \ud568\uc218\uc5d0 \ub300\ud55c \uc815\uc758\uc640 \uadf8\ub798\ud504 \uc2dc\uac01\ud654\ub294 \ub2e4\uc74c \ucf54\ub4dc\uc640 \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n\r\ndef identity_func(x):\r\n    return x\r\n\r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, identity_func(x), linestyle='-', label=\"identity\")\r\nplt.ylim(-10, 10)\r\nplt.legend()\r\nplt.show() \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/identity_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8286\" \/><\/p>\n<p>\uae30\uc6b8\uae30\uc640 y\uc808\ud3b8\uc744 \uace0\ub824\ud55c \uc120\ud615 \ud568\uc218\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n  \r\ndef linear_func(x):\r\n    return 2 * x + 1 \r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, linear_func(x), linestyle='-', label=\"linear_func\")\r\nplt.ylim(-10, 10)\r\nplt.legend()\r\nplt.show() \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/linear_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8290\" \/><\/p>\n<p>\uacc4\ub2e8\ud568\uc218\uc5d0 \ub300\ud55c \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef binarystep_func(x):\r\n    return (x>=0)*1\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, binarystep_func(x), linestyle='-', label=\"binarystep_func\")\r\nplt.ylim(-5, 5)\r\nplt.legend()\r\nplt.show() \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/binarystep_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8291\" \/><\/p>\n<p>\ub85c\uc9c0\uc2a4\ud2f1(Logistic) \ub610\ub294 \uc2dc\uadf8\ubaa8\uc774\ub4dc(Sigmoid)\ub77c\uace0 \ubd88\ub9ac\ub294 \ud568\uc218 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n\r\ndef softstep_func(x):\r\n    return 1 \/ (1 + np.exp(-x))\r\n\r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, softstep_func(x), linestyle='-', label=\"softstep_func\")\r\nplt.ylim(0, 1)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/softstep_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8292\" \/><\/p>\n<p>TanH \ud568\uc218 \uc815\uc758 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef tanh_func(x):\r\n    return np.tanh(x)\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, tanh_func(x), linestyle='-', label=\"tanh_func\")\r\nplt.ylim(-1, 1)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uadf8\ub798\ud504\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/tanh_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8293\" \/><\/p>\n<p>ArcTan \ud568\uc218 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n\r\ndef arctan_func(x):\r\n    return np.arctan(x)\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, arctan_func(x), linestyle='-', label=\"arctan_func\")\r\nplt.ylim(-1.5, 1.5)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uadf8\ub798\ud504\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/arctan_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8294\" \/><\/p>\n<p>Soft Sign \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef softsign_func(x):\r\n    return x \/ ( 1+ np.abs(x) )\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, softsign_func(x), linestyle='-', label=\"softsign_func\")\r\nplt.ylim(-1, 1)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uadf8\ub798\ud504\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/softsign_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8295\" \/><\/p>\n<p>ReLU(Rectified Linear Unit) \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef relu_func(x):\r\n    return (x>0)*x\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, relu_func(x), linestyle='-', label=\"relu_func\")\r\nplt.ylim(-1, 11)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/relu_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8296\" \/><\/p>\n<p>Leaky ReLU \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef leakyrelu_func(x, alpha=0.1):\r\n    return (x>=0)*x + (x<0)*alpha*x\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, leakyrelu_func(x), linestyle='-', label=\"leakyrelu_func\")\r\nplt.ylim(-2, 11)\r\nplt.legend()\r\nplt.show()   \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/leakyrelu_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8297\" \/><\/p>\n<p>ELU(Exponential Linear Unit) \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\ndef elu_func(x, alpha=0.9):\r\n    return (x>=0)*x + (x<0)*alpha*(np.exp(x)-1)\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, elu_func(x), linestyle='-', label=\"elu_func\")\r\nplt.ylim(-2, 11)\r\nplt.legend()\r\nplt.show()    \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/elu_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8298\" \/><\/p>\n<p>TreLU \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef trelu_func(x, thres=2):\r\n    return (x>thres)*x\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, trelu_func(x), linestyle='-', label=\"trelu_func\")\r\nplt.ylim(-2, 11)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/trelu_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8299\" \/><\/p>\n<p>SoftPlus \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef softplus_func(x):\r\n    return np.log( 1 + np.exp(x) )\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, softplus_func(x), linestyle='-', label=\"softplus_func\")\r\nplt.ylim(-1, 11)\r\nplt.legend()\r\nplt.show()     \r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/softplus_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8300\" \/><\/p>\n<p>Bent identity \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef bentidentity_func(x):\r\n    return (np.sqrt(x*x+1)-1)\/2+x\r\n\r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, bentidentity_func(x), linestyle='-', label=\"bentidentity_func\")\r\nplt.ylim(-6, 11)\r\nplt.legend()\r\nplt.show()\r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/bentidentity_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8301\" \/><\/p>\n<p>Gaussian \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport numpy as np\r\nimport matplotlib.pylab as plt\r\n \r\ndef gaussian_func(x):\r\n    return np.exp(-x*x)\r\n \r\nx = np.arange(-10, 10, 0.01)\r\nplt.plot(x, gaussian_func(x), linestyle='-', label=\"gaussian_func\")\r\nplt.ylim(-0.5, 1.5)\r\nplt.legend()\r\nplt.show()\r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/10\/gaussian_func_graph.png\" alt=\"\" width=\"640\" height=\"479\" class=\"aligncenter size-full wp-image-8302\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc120\ud615 \ud568\uc218\uc5d0 \ub300\ud55c \uc815\uc758\uc640 \uadf8\ub798\ud504 \uc2dc\uac01\ud654\ub294 \ub2e4\uc74c \ucf54\ub4dc\uc640 \uac19\ub2e4. import numpy as np import matplotlib.pylab as plt def identity_func(x): return x x = np.arange(-10, 10, 0.01) plt.plot(x, identity_func(x), linestyle=&#8217;-&#8216;, label=&#8221;identity&#8221;) plt.ylim(-10, 10) plt.legend() plt.show() \uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. \uae30\uc6b8\uae30\uc640 y\uc808\ud3b8\uc744 \uace0\ub824\ud55c \uc120\ud615 \ud568\uc218\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. import numpy as np import matplotlib.pylab as plt def linear_func(x): &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=8285\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ud568\uc218\ub4e4\uc5d0 \ub300\ud55c \uadf8\ub798\ud504 \uc2dc\uac01\ud654&#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":[131,132,1],"tags":[],"class_list":["post-8285","post","type-post","status-publish","format-standard","hentry","category-python","category-deep-machine-learning","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8285","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=8285"}],"version-history":[{"count":5,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8285\/revisions"}],"predecessor-version":[{"id":9371,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8285\/revisions\/9371"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}