{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F11%2F28%2F010418\" title=\"\u8a73\u89e3\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0 \u7b2c2\u7248 (2) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","version":"1.0","published":"2021-11-28 01:04:18","provider_url":"https://hatena.blog","title":"\u8a73\u89e3\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0 \u7b2c2\u7248 (2)","categories":["machine_learning"],"description":"\u300c5.2.7 \u9577\u671f\u4f9d\u5b58\u6027\u306e\u5b66\u7fd2\u8a55\u4fa1\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u78ba\u8a8d: # \u30b7\u30b0\u30ca\u30eb\u306e\u524d\u534a print(x[0, :, 0][:30]) # \u30de\u30b9\u30af print(x[0, :, 1]) indices_of_one = np.where(x[0, :, 1] == 1) # \u30de\u30b9\u30af\u304c 1 \u306e\u7b87\u6240 print(indices_of_one) # \u30de\u30b9\u30af\u304c 1 \u306e\u7b87\u6240\u306e\u30b7\u30b0\u30ca\u30eb\u306e\u62bd\u51fa\u3068\u548c\u306e\u8a08\u7b97 print(x[0, :, 0][indices_of_one], '->', np.sum(x[0, :, 0][indices_of_one])) # \u6b63\u89e3 print(t[0]) $X\u2026","url":"https://randommemory.hatenablog.com/entry/2021/11/28/010418","blog_url":"https://randommemory.hatenablog.com/","type":"rich","author_url":"https://blog.hatena.ne.jp/derwind/","author_name":"derwind","height":"190","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20211128/20211128014208.jpg","provider_name":"Hatena Blog"}