<?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 今回は、glmnet エンジンで multinomial logistic regression でやってみます。 モデルを作成します。multinom_reg() 関数です。 ワークフローを作成します。 チューニングのグリッドを作成します。 チューニングを実行します。 最良のパラメータを確認します。 最良のパラメータで最終ワークフローを作成します。 df_train のデータで学習します。 df_test のデータで予測します。 3, 4, 5, 6, 9, 10 行目が正解しています。 混合行列を作成します。conf_mat() 関数を使います。 前回…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2026%2F05%2F06%2F090613&quot; title=&quot;UCI Machine Learning Repository の Obesity データの分析7 - multinomial logistic regression での予測。正解率は 90.1% - 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/20260506/20260506083615.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-06 09:06:13</published>
  <title>UCI Machine Learning Repository の Obesity データの分析7 - multinomial logistic regression での予測。正解率は 90.1%</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2026/05/06/090613</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
