<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>数学</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>まずは、二値分類のプログラムを書こうと思います。そのために、ランダムに超平面を作ります。しかし、超平面をランダムに作ろうとすれば、法線ベクトルをランダムに作る必要があります。すなわち、これは超球面上にランダムに点を打つことになります。最も簡単な方法は、xi ∊ [-1, 1]を生成し、超球面上に原点方向へ射影することです。しかし、これはダメです。二次元で考えても、x軸方向より(1, 1)方向からに射影される点のほうが多いです。正確で簡単な方法は、同様に超立方体上に点を打ち、それがその超立方体に入る超球内なら超球面上に射影する方法です。しかし、これは次元が高くなると非現実的になります。wikip…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20151204%2Fp1&quot; title=&quot;機械学習（1） 超球面上にランダムに点を打つ - inamori’s diary&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>2015-12-04 00:00:00</published>
  <title>機械学習（1） 超球面上にランダムに点を打つ</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20151204/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
