{"published":"2021-01-02 23:12:26","categories":["Python","NumPy","\u97f3\u97ff\u97f3\u697d\u4fe1\u53f7\u51e6\u7406"],"blog_url":"https://www.wizard-notes.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fpython%2Fnumpy-errstate-log\" title=\"numpy.errstate\u3067\u5bfe\u6570\u3092\u3068\u3063\u305f\u6642\u306ewarning\u3092\u7121\u8996\u3059\u308b - Wizard Notes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20210102/20210102231146.png","height":"190","description":"\u97f3\u4fe1\u53f7\u51e6\u7406\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001 import numpy as np y_array = np.log10(x_array) \u306e\u3088\u3046\u306b\u5bfe\u6570\u3092\u3068\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u3067\u3001x_array \u306b\u306f 0 \u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u3001\u305d\u306e\u5834\u5408\u306b\u306f RuntimeWarning: divide by zero encountered in log10 \u3068 warning \u304c\u51fa\u529b\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u3053\u308c\u3092\u624b\u969b\u3088\u304f\u89e3\u6c7a\u3059\u308b\u624b\u6bb5\u3092\u8abf\u3079\u3066\u307f\u308b\u3068\u3001numpy.errstate()\u3068\u3044\u3046\u95a2\u6570\u304c\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002 numpy.errstate \u2014 NumPy v1.19 Manual \u4f7f\u7528\u4f8b\uff1a im\u2026","author_name":"Kurene","blog_title":"Wizard Notes","title":"numpy.errstate\u3067\u5bfe\u6570\u3092\u3068\u3063\u305f\u6642\u306ewarning\u3092\u7121\u8996\u3059\u308b","url":"https://www.wizard-notes.com/entry/python/numpy-errstate-log","provider_url":"https://hatena.blog","version":"1.0","width":"100%","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/Kurene/"}