<?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 の続きです。前回はデータをRに読み込ませて前処理をしました。 今回は実際に分類器を作ります。glmnetパッケージでElastic-Netでやってみようと思います。 glmnetパッケージを読み込みます。 glmnetは特徴量はマトリックス型、targetはベクトル型にする必要があるので、dfをxとyにわけます。 トレーニング用のインデックスを作成します。 alpha = 0.2, alpha = 0.5, alpha = 0.8 の3つのalpha水準でモデルを作りました。 この3つの中で、どれが一番よかったか調べます。 alpha = 0.8 の cv…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2026%2F02%2F14%2F180850&quot; title=&quot;UCI Machine Learning Repository の Chess (King-Rook vs. King-Pawn) のデータの分析2 - glmnetのElastic-Netで分類してみる。ROCのAUCが0.996と高性能でした。 - 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/20260214/20260214171254.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-14 18:08:50</published>
  <title>UCI Machine Learning Repository の Chess (King-Rook vs. King-Pawn) のデータの分析2 - glmnetのElastic-Netで分類してみる。ROCのAUCが0.996と高性能でした。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2026/02/14/180850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
