<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kinuit</author_name>
  <author_url>https://blog.hatena.ne.jp/kinuit/</author_url>
  <blog_title>と。</blog_title>
  <blog_url>https://socinuit.hatenablog.com/</blog_url>
  <categories>
    <anon>01_統計モデリング</anon>
    <anon>07_R言語</anon>
  </categories>
  <description>この記事も！ R Advent Calendar 22日目の記事ではありません！ 記事は書いてます！読後メモも書いてます！でもしょうがない。問題にぶち当たったので。 どんな問題？ Rのglmnet::cv.glmnet()関数で実行するL1正則化回帰(Lasso)において、 set.seed()でシード値を固めても、選択される変数にばらつきが生じる 原因は？ Rではset.seed()の効力は同時実行に限られる。 つまりset.seed()とglmnet::cv.glmnet()が同時に実行されるような実装をしないと、 変数選択の結果がぶれます……かなしい…… 結果は？ githubにあげまし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsocinuit.hatenablog.com%2Fentry%2F2019%2F12%2F19%2F132851&quot; title=&quot;Lasso回帰で選択される変数が実行するたびに変わる話 - と。&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-19 13:28:51</published>
  <title>Lasso回帰で選択される変数が実行するたびに変わる話</title>
  <type>rich</type>
  <url>https://socinuit.hatenablog.com/entry/2019/12/19/132851</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
