<?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 の続きです。今回はrangerパッケージでランダムフォレスト分類してみましょう。OLSでは53.9%, LASSO回帰では54.7%, k-NNでは62.8%でしたがランダムフォレストではこれらの正解率よりも高い正解率になるでしょうか？ まず、rangerパッケージの読み込みをします。 rangerで処理できるように、qualityをファクター型にしたデータフレームを用意します。 トレーニングデータでモデルを作ります。 predict()関数で、テストデータで予測します。 実際の値と比較してみましょう。 正解率は、69.1%でした。 今まで予測モデルの中で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2025%2F11%2F15%2F085618&quot; title=&quot;UCI Machine Learning Repository の Wine Quality のデータの分析8 - rangerパッケージでランダムフォレストで分類 - 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/20251115/20251115082605.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-15 08:56:18</published>
  <title>UCI Machine Learning Repository の Wine Quality のデータの分析8 - rangerパッケージでランダムフォレストで分類</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2025/11/15/085618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
