<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cross_hyou</author_name>
  <author_url>https://blog.hatena.ne.jp/cross_hyou/</author_url>
  <blog_title>Rで何かをしたり、読書をするブログ</blog_title>
  <blog_url>https://www.crosshyou.info/</blog_url>
  <categories>
    <anon>データ分析</anon>
  </categories>
  <description>www.crosshyou.info 前回は k-NN で予測しました。今回は Naive Bayes で予測してみます。 はじめに discrim パッケージを読み込んでおきます。 モデルを作成します。 ワークフローを作成します。レシピは前回の k-NN で作成したレシピをそのまま使います。 チューニンググリッドを作成します。 チューニングを実行します。 最良パラメータを取り出します。 最良パラメータで最終ワークフローを作成します。 トレーニング用のデータでモデルを学習します。 テスト用のデータで予測します。 2, 3, 10行目が正解していますね。 混合行列を作成します。 青枠で囲ったとこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2026%2F05%2F05%2F105436&quot; title=&quot;UCI Machine Learning Repository の Obesity データの分析6 - Naive Bayes による分類。正解率は 48.2% - Rで何かをしたり、読書をするブログ&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/c/cross_hyou/20260505/20260505095616.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-05 10:54:36</published>
  <title>UCI Machine Learning Repository の Obesity データの分析6 - Naive Bayes による分類。正解率は 48.2%</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2026/05/05/105436</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
