<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>これをどうやって描いたかという話まず矢印が変な形になるのを避けるために散布図の縦と横の縮尺を固定し(1)、重みベクトルで矢印を描き(2)、大きな灰色の長方形をほぼ透明にして重みベクトルの値を元に作ったアフィン変換で回転して描画している(3)data1, data2, w, data2colorなんかはグローバルスコープから拾ってきているので気にしないように。 def draw(figureid): clf() ax = gca() ax.set_ylim(-6, 6) # (1) ax.set_xlim(-6, 6) # (1) scatter(data1[:, 0], data1[:, 1]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20111129%2F1322553666&quot; title=&quot;matplotlibで線形分類器の分離平面を描くには - 西尾泰和のはてなダイアリー&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nishiohirokazu/20111129/20111129165419.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-29 17:01:06</published>
  <title>matplotlibで線形分類器の分離平面を描くには</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20111129/1322553666</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
