{"id":17805,"date":"2022-07-25T01:21:03","date_gmt":"2022-07-25T01:21:03","guid":{"rendered":"https:\/\/club.informatix.co.jp\/?p=17805"},"modified":"2024-10-31T07:24:34","modified_gmt":"2024-10-31T07:24:34","slug":"numpy%e3%81%a7%e8%a1%8c%e5%88%97%e3%80%80%e5%9b%9e%e5%b8%b0%e5%88%86%e6%9e%90-%e3%81%9d%e3%81%ae2%ef%bd%9cpython%e3%81%a7%e6%95%b0%e5%ad%a6%e3%82%92%e5%ad%a6%e3%81%bc%e3%81%86%ef%bc%81%e3%80%80","status":"publish","type":"post","link":"https:\/\/club.informatix.co.jp\/?p=17805","title":{"rendered":"NumPy\u3067\u884c\u5217\u3000\u56de\u5e30\u5206\u6790 \u305d\u306e2\uff5cPython\u3067\u6570\u5b66\u3092\u5b66\u307c\u3046\uff01 \u7b2c23\u56de"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a05f64f82a13\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a05f64f82a13\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#NumPy%E3%81%A7%E8%A1%8C%E5%88%97\" >NumPy\u3067\u884c\u5217<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E8%A1%8C%E5%88%97%E3%81%AE%E5%AE%9A%E7%BE%A9\" >\u884c\u5217\u306e\u5b9a\u7fa9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E8%A1%8C%E5%88%97%E3%81%AE%E5%92%8C%E3%83%BB%E5%B7%AE\" >\u884c\u5217\u306e\u548c\u30fb\u5dee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E8%A1%8C%E5%88%97%E3%81%AE%E5%AE%9F%E6%95%B0%E5%80%8D\" >\u884c\u5217\u306e\u5b9f\u6570\u500d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E8%A1%8C%E5%88%97%E3%81%AE%E7%A9%8D\" >\u884c\u5217\u306e\u7a4d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E8%A1%8C%E5%88%97%E3%81%AE%E5%86%AA%E4%B9%97\" >\u884c\u5217\u306e\u51aa\u4e57<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/club.informatix.co.jp\/?p=17805\/#%E7%89%B9%E6%AE%8A%E3%81%AA%E6%BC%94%E7%AE%97\" >\u7279\u6b8a\u306a\u6f14\u7b97<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"NumPy%E3%81%A7%E8%A1%8C%E5%88%97\"><\/span>NumPy\u3067\u884c\u5217<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=17728\" target=\"_blank\" rel=\"noopener\">\u524d\u56de<\/a>\u3001\u56de\u5e30\u5206\u6790\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8981\u306e\u30b3\u30fc\u30c9\u306f\u6b21\u306e1\u884c\u3067\u3042\u308b\u3053\u3068\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&gt;&gt;&gt;\u3000 # \u56de\u5e30\u4fc2\u6570\u306e\u8a08\u7b97<br \/>\n&gt;&gt;&gt;\u3000 theta = np.linalg.inv(X.T @ X) @ X.T @ y<\/p>\n<p>\u3053\u3053\u306b\u884c\u5217\u306e\u8a08\u7b97\u306e\u30a8\u30c3\u30bb\u30f3\u30b9\u304c\u8a70\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u884c\u5217\u306e\u7a4d\u3001\u8ee2\u7f6e\u884c\u5217\u305d\u3057\u3066\u9006\u884c\u5217\u3067\u3059\u3002\u3055\u3063\u305d\u304f\u884c\u5217\u306e\u57fa\u672c\u3092Python\u3068\u3068\u3082\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d9\u30af\u30c8\u30eb\u3068\u540c\u3058\u304f\u884c\u5217\u3082NumPy\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306b\u3053\u308c\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt;\u3000 import numpy as np<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A1%8C%E5%88%97%E3%81%AE%E5%AE%9A%E7%BE%A9\"><\/span>\u884c\u5217\u306e\u5b9a\u7fa9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3055\u3063\u305d\u304f\u914d\u5217\u3092\u5b9a\u7fa9\u3059\u308bnp.array()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30d9\u30af\u30c8\u30eb\u306e\u5834\u5408\u306b\u306f\u3001\u5217\u30d9\u30af\u30c8\u30eb\u30fb\u884c\u30d9\u30af\u30c8\u30eb\u306e\u6271\u3044\u306b\u72ec\u7279\u306a\u30af\u30bb\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u884c\u5217\u306f\u30af\u30bb\u306a\u304f\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b0\u30fc\u30b0\u30eb\u30fb\u30b3\u30e9\u30dc\u30e9\u30c8\u30ea\u30fc\u306e\u51fa\u529b\u7d50\u679c\u3092\u4f7f\u3063\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17814\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-1-1.jpg\" alt=\"\" width=\"759\" height=\"408\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-1-1.jpg 759w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-1-1-300x161.jpg 300w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u884c\u5217\u306e\u884c\u3054\u3068\u3092\u914d\u5217[]\u3068\u3057\u3066np.array([])\u306b\u6e21\u3059\u3053\u3068\u3067\u884c\u5217\u304c\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u306f[1\u884c],[2\u884c]\u3068\u3064\u306a\u3052\u308b\u3088\u308a\u3082\u56f3\u306e\u3088\u3046\u306b\u884c\u3054\u3068\u306b\u6539\u884c\u3057\u3066\u66f8\u304f\u65b9\u304c\u884c\u5217\u306e\u6210\u5206\u304c\u898b\u3084\u3059\u304f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b0\u30fc\u30b0\u30eb\u30fb\u30b3\u30e9\u30dc\u30e9\u30c8\u30ea\u30fc\u306e\u5834\u5408\u3001\u5b9a\u7fa9\u3057\u305f\u884c\u5217A2\u3092\u305d\u306e\u307e\u307e\u5b9f\u884c\u3059\u308b\u3068array()\u306e\u5f62\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002print\u6587\u306b\u6e21\u305b\u3070\u884c\u5217\u3089\u3057\u304f\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17818\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-2-1.jpg\" alt=\"\" width=\"759\" height=\"294\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-2-1.jpg 759w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-2-1-300x116.jpg 300w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>\u4ee5\u4e0bB2\u3001A3\u3001A4\u3068\u884c\u5217\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17816\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-3-1.jpg\" alt=\"\" width=\"759\" height=\"1095\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-3-1.jpg 759w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-3-1-208x300.jpg 208w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-3-1-710x1024.jpg 710w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A1%8C%E5%88%97%E3%81%AE%E5%92%8C%E3%83%BB%E5%B7%AE\"><\/span>\u884c\u5217\u306e\u548c\u30fb\u5dee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u884c\u5217\u306e\u548c\u30fb\u5dee\u306f\u6210\u5206\u3054\u3068\u306e\u548c\u30fb\u5dee\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002\u6570\u306e\u8a08\u7b97\u3068\u540c\u69d8\u306b\u300c+\u300d\u300c-\u300d\u8a18\u53f7\u3092\u7528\u3044\u3066\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17817\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-4-1.jpg\" alt=\"\" width=\"759\" height=\"1095\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-4-1.jpg 759w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-4-1-208x300.jpg 208w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-4-1-710x1024.jpg 710w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A1%8C%E5%88%97%E3%81%AE%E5%AE%9F%E6%95%B0%E5%80%8D\"><\/span>\u884c\u5217\u306e\u5b9f\u6570\u500d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u884c\u5217\u306e\u5b9f\u6570\u500d\u3068\u306f2A2\u306e\u3088\u3046\u306b\u884c\u5217\u306e\u524d\u306b\u30b9\u30ab\u30e9\u30fc\u3092\u66f8\u3044\u3066\u8868\u3057\u307e\u3059\u3002\u884c\u5217A\u306e\u3059\u3079\u3066\u306e\u6210\u5206\u30922\u500d\u3059\u308b\u8a08\u7b97\u3067\u3059\u3002Python\u3067\u306f\u6570\u306e\u4e57\u7b97\u300c*\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17807\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-5-1.jpg\" alt=\"\" width=\"759\" height=\"484\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-5-1.jpg 759w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-5-1-300x191.jpg 300w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A1%8C%E5%88%97%E3%81%AE%E7%A9%8D\"><\/span>\u884c\u5217\u306e\u7a4d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u3053\u307e\u3067\u884c\u5217\u306e\u548c\u30fb\u5dee\u30fb\u5b9f\u6570\u500d\u306f\u5206\u304b\u308a\u3084\u3059\u3044\u8a08\u7b97\uff08\u6f14\u7b97\u306e\u5b9a\u7fa9\uff09\u3067\u3059\u3002\u884c\u5217\u306f\u7a4d\u306e\u5b9a\u7fa9\u304c\u72ec\u7279\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306b\u884c\u30d9\u30af\u30c8\u30eb\u3068\u5217\u30d9\u30af\u30c8\u30eb\u306e\u7a4d\u304c1\u3064\u306e\u6570\uff08\u30b9\u30ab\u30e9\u30fc\uff09\u3068\u306a\u308b\u8a08\u7b97\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u3053\u3067\u305d\u308c\u305e\u308c\u306e\u30d9\u30af\u30c8\u30eb\u306e\u8981\u7d20\u6570\u304c\u7b49\u3057\u3044\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3059\u3002\u7b49\u3057\u304f\u306a\u3044\u5834\u5408\u306b\u306f\u7a4d\u304c\u5b9a\u7fa9\u3055\u308c\u307e\u305b\u3093\uff08\u8a08\u7b97\u3067\u304d\u306a\u3044\uff09\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17820\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1.jpg\" alt=\"\" width=\"1920\" height=\"1200\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1.jpg 1920w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1-300x188.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1-1024x640.jpg 1024w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1-768x480.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1-1536x960.jpg 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>2\u6b21\u6b63\u65b9\u884c\u5217\uff082\u00d72\u884c\u5217\uff09\u30683\u6b21\u6b63\u65b9\u884c\u5217\uff083\u00d73\u884c\u5217\uff09\u306e\u5834\u5408\u306e\u7a4d\u306e\u7d50\u679c\u306f\u6b21\u306e\u56f3\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u7d50\u679c\u3092\u516c\u5f0f\u3068\u3057\u3066\u899a\u3048\u308b\u3088\u308a\u306f\u3001\u4e0a\u8a18\u306e\u884c\u30d9\u30af\u30c8\u30eb\u00d7\u5217\u30d9\u30af\u30c8\u30eb\u306e\u8a08\u7b97\u6cd5\u5247\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u7406\u89e3\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17808\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-6-1.jpg\" alt=\"\" width=\"815\" height=\"1093\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-6-1.jpg 815w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-6-1-224x300.jpg 224w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-6-1-764x1024.jpg 764w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-6-1-768x1030.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>NumPy\u3067\u306f\u884c\u5217\u306e\u7a4d\u306e\u8a08\u7b97\u65b9\u6cd5\u306f\u6570\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u300c@\u300d\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u306e\u307f\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A1%8C%E5%88%97%E3%81%AE%E5%86%AA%E4%B9%97\"><\/span>\u884c\u5217\u306e\u51aa\u4e57<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u884c\u5217\u306e\u51aa\u4e57\u306f\u300c@\u300d\u3092\u7e70\u308a\u8fd4\u3057\u7528\u3044\u308b\u3053\u3068\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002A2\u306e2\u4e57\u30013\u4e57\u306f\u305d\u308c\u305e\u308cA2 @ A2\u3001A2 @ A2 @ A2\u3068\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17809\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-7-1.jpg\" alt=\"\" width=\"815\" height=\"833\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-7-1.jpg 815w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-7-1-294x300.jpg 294w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-7-1-768x785.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>NumPy\u306b\u306f\u884c\u5217\u306e\u51aa\u4e57\u8a08\u7b97\u306e\u305f\u3081\u306enp.linalg.matrix_power()\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7b2c1\u5f15\u6570\u306b\u6b63\u65b9\u884c\u5217\uff08\u7d2f\u4e57\u306f\u6b63\u65b9\u884c\u5217\u3060\u3051\u304c\u53ef\u80fd\uff09\u305d\u3057\u3066\u7b2c2\u5f15\u6570\u306b\u4e57\u6570\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17819\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-8-1.jpg\" alt=\"\" width=\"815\" height=\"509\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-8-1.jpg 815w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-8-1-300x187.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-8-1-768x480.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%89%B9%E6%AE%8A%E3%81%AA%E6%BC%94%E7%AE%97\"><\/span>\u7279\u6b8a\u306a\u6f14\u7b97<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u901a\u5e38\u306e\u56db\u5247\u6f14\u7b97\u3067\u7528\u3044\u3089\u308c\u308b\u4e57\u6cd5\u300c*\u300d\u3068\u51aa\u4e57\u300c**\u300d\u306f\u3001NumPy\u306e\u884c\u5217\u306e\u6f14\u7b97\u3067\u306f\u6b21\u306e\u3088\u3046\u306a\u7279\u6b8a\u306a\u6f14\u7b97\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17821\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-10-1.jpg\" alt=\"\" width=\"815\" height=\"618\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-10-1.jpg 815w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-10-1-300x227.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-10-1-768x582.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-17813\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11.jpg\" alt=\"\" width=\"815\" height=\"811\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11.jpg 815w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11-300x300.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11-150x150.jpg 150w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11-768x764.jpg 768w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-11-100x100.jpg 100w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>\u4ee5\u4e0a\u306e\u30b0\u30fc\u30b0\u30eb\u30fb\u30b3\u30e9\u30dc\u30e9\u30c8\u30ea\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u300c\u7b2c23\u56deNumPy\u3066\u3099\u884c\u5217.ipynb\u300d\u306f\u6b21\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/1CxjmAr645hOH70jjZUOJNwpMrQ_UWsOd\/view?usp=sharing\" target=\"_blank\" rel=\"noopener\">https:\/\/drive.google.com\/file\/d\/1CxjmAr645hOH70jjZUOJNwpMrQ_UWsOd\/view?usp=sharing<\/a><\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u52d5\u304d\u307e\u305b\u3093\u3002\u30b0\u30fc\u30b0\u30eb\u30fb\u30b3\u30e9\u30dc\u30e9\u30c8\u30ea\u30fc\u3092\u8d77\u52d5\u3057\u3066\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u3067\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u884c\u5217\u306e\u7a4d\u307e\u3067\u306e\u6f14\u7b97\u3092Python\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u51aa\u4e57\u3067\u4f7f\u3063\u305fnp.linalg.matrix_power()\u95a2\u6570\u306ematrix\u306f\u884c\u5217\u3001power\u306f\u51aa\u4e57\u3092\u8868\u3059\u306e\u306f\u6587\u5b57\u306e\u901a\u308a\u3067\u3059\u3002linalg\u306f\u7dda\u5f62\u4ee3\u6570linear algebra\u306e\u7565\u3067\u3059\u3002<\/p>\n<p>\u884c\u5217\u306e\u8a08\u7b97\u306f\u307e\u3060\u307e\u3060\u7d9a\u304d\u307e\u3059\u3002<a href=\"https:\/\/club.informatix.co.jp\/?p=17923\" target=\"_blank\" rel=\"noopener\">\u6b21\u56de<\/a>\u306fmatrix\u306e\u548c\u8a33\u300c\u884c\u5217\u300d\u3068\u3044\u3046\u7528\u8a9e\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NumPy\u3067\u884c\u5217 \u524d\u56de\u3001\u56de\u5e30\u5206\u6790\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8981\u306e\u30b3\u30fc\u30c9\u306f\u6b21\u306e1\u884c\u3067\u3042\u308b\u3053\u3068\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 &gt;&gt;&gt;\u3000 # \u56de\u5e30\u4fc2\u6570\u306e\u8a08\u7b97 &gt;&gt;&gt;\u3000 theta = np.linal &#8230; <\/p>\n","protected":false},"author":4,"featured_media":17820,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,464,526],"tags":[65,750],"class_list":["post-17805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-hito-star-mathmatics","category-526","tag-python","tag-750"],"jetpack_featured_media_url":"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/07\/20220725-9-1.jpg","_links":{"self":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17805"}],"version-history":[{"count":7,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17805\/revisions"}],"predecessor-version":[{"id":20750,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17805\/revisions\/20750"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/media\/17820"}],"wp:attachment":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}