<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hongoh</author_name>
  <author_url>https://blog.hatena.ne.jp/hongoh/</author_url>
  <blog_title>金融アトラス</blog_title>
  <blog_url>https://hongoh.hatenablog.com/</blog_url>
  <categories>
    <anon>その他</anon>
    <anon>その他-機械学習</anon>
  </categories>
  <description>本ページでは、K近傍法とは何かについてまとめたい。K近傍法（KNNとも呼ばれる）とは、機械学習のアルゴリズムの一つであり、「教師あり学習」に分類される。 総務省の定義によると、K近傍法とは「分類に使われる手法の一つで、与えられた学習データと入力データとの距離を計算し、距離の近い順に探し出した K 個の学習データと、入力データとの多数決で得られた結果を、分類結果とする」アルゴリズムである。 例えば、ランダムに選ばれた人が関西出身か関東出身かを予測することを考える。手がかりとするのは「お好み焼きの年間消費額」と「もんじゃの年間消費額」である。まず、学習データとして100人のサンプルを集め、お好み焼…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhongoh.hatenablog.com%2Fentry%2Fknn&quot; title=&quot;K近傍法とは何か - 金融アトラス&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-09 00:00:00</published>
  <title>K近傍法とは何か</title>
  <type>rich</type>
  <url>https://hongoh.hatenablog.com/entry/knn</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
