<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>argmaxで、最大値のインデックスをとる &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; a = np.array([1,2,3,4,5]) &gt;&gt;&gt; np.argmax(a) 4 最大値な値が複数あったら、最初のインデックスをとる &gt;&gt;&gt; b = np.array([3,3,1,2,0]) &gt;&gt;&gt; np.argmax(b) 0 numpy.argmax — NumPy v1.15 Manual</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2018%2F08%2F14%2F181330&quot; title=&quot;numpy argmax - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-14 18:13:30</published>
  <title>numpy argmax</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2018/08/14/181330</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
