{"id":8112,"date":"2019-08-11T13:42:57","date_gmt":"2019-08-11T04:42:57","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=8112"},"modified":"2020-05-28T10:19:08","modified_gmt":"2020-05-28T01:19:08","slug":"numpy%ec%9d%98-axis%ec%97%90-%eb%94%b0%eb%a5%b8-%ec%97%b0%ec%82%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=8112","title":{"rendered":"Numpy\uc758 axis\uc5d0 \ub530\ub978 \uc5f0\uc0b0"},"content":{"rendered":"<p>\ub118\ud30c\uc774\uc758 sum \ud568\uc218\ub97c \uc608\ub85c axis\uc758 \uac12\uc5d0 \ub530\ub77c \uc5b4\ub5bb\uac8c \uc5f0\uc0b0\uc774 \ucc98\ub9ac\ub418\ub294\uc9c0\ub97c \uc2dc\uac01\ud654\ud574 \ubcf8\ub2e4.<\/p>\n<p>\uba3c\uc800 x\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nx = np.array([\r\n    [ 1,  2,  3,  4],\r\n    [ 5,  6,  7,  8],\r\n    [ 9, 10, 11, 12],\r\n])\r\n<\/pre>\n<p>\uc704\uc758 x\ub97c \ud589\ub82c\ub85c \uc2dc\uac01\ud654 \ud558\uba74 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/08\/matrix01.png\" alt=\"\" width=\"50%\" class=\"aligncenter size-full wp-image-8113\" \/><\/p>\n<p>\uc774 x\uc5d0 \ub300\ud55c axis=0\uc73c\ub85c \ud55c sum \ud568\uc218\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc73c\uba70 \uadf8 \uacb0\uacfc\ub294 \ubc14\ub85c \ub2e4\uc74c\uc758 \uadf8\ub9bc\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nnp.sum(x, axis=0)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/08\/matrix02.png\" alt=\"\" width=\"50%\" class=\"aligncenter size-full wp-image-8116\" \/><\/p>\n<p>\uc774 x\uc5d0 \ub300\ud55c axis=1\uc73c\ub85c \ud55c sum \ud568\uc218\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc73c\uba70 \uadf8 \uacb0\uacfc\ub294 \ubc14\ub85c \ub2e4\uc74c\uc758 \uadf8\ub9bc\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nnp.sum(x, axis=1)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2019\/08\/matrix03.png\" alt=\"\" width=\"50%\" class=\"aligncenter size-full wp-image-8117\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub118\ud30c\uc774\uc758 sum \ud568\uc218\ub97c \uc608\ub85c axis\uc758 \uac12\uc5d0 \ub530\ub77c \uc5b4\ub5bb\uac8c \uc5f0\uc0b0\uc774 \ucc98\ub9ac\ub418\ub294\uc9c0\ub97c \uc2dc\uac01\ud654\ud574 \ubcf8\ub2e4. \uba3c\uc800 x\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. x = np.array([ [ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 11, 12], ]) \uc704\uc758 x\ub97c \ud589\ub82c\ub85c \uc2dc\uac01\ud654 \ud558\uba74 \ub2e4\uc74c\uacfc \uac19\ub2e4. \uc774 x\uc5d0 \ub300\ud55c axis=0\uc73c\ub85c \ud55c sum \ud568\uc218\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc73c\uba70 \uadf8 \uacb0\uacfc\ub294 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=8112\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Numpy\uc758 axis\uc5d0 \ub530\ub978 \uc5f0\uc0b0&#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],"tags":[],"class_list":["post-8112","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8112","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=8112"}],"version-history":[{"count":5,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8112\/revisions"}],"predecessor-version":[{"id":9389,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/8112\/revisions\/9389"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}