<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>機械学習</anon>
    <anon>PRML</anon>
    <anon>R</anon>
    <anon>卒研</anon>
  </categories>
  <description>K近傍法による密度推定はいまいちな気がしたので、K近傍法によるクラス分類を行なうことにしました。多クラスでもいいんだけど、まあ2クラスから始めます。クラスに帰属する事後確率が(P123の(2.256式))であることを利用しています。自分で適当にデータ生成して、Kを変えつつ、予測と実際のデータをplotさせてみました。★のマークが実際のデータで、背景の色がついているのが、予測のところです。 d &lt;- &quot;x1,x2,class 0.11,0.33,r 0.59,0.31,b 0.12,0.97,r 0.33,0.71,r 0.38,0.76,r 0.43,0.11,b 0.23,0.61,r 0.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20081017%2F1224255046&quot; title=&quot;RでK近傍法を用いたクラス分類をするためのコードを書いてみた - yasuhisa&amp;#39;s blog&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/s/syou6162/20161009/20161009220206.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-10-17 23:50:46</published>
  <title>RでK近傍法を用いたクラス分類をするためのコードを書いてみた</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20081017/1224255046</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
