<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>「ElasticNet」タグの記事一覧Python Tech</title>
	<atom:link href="https://tech.nkhn37.net/tag/elasticnet/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.nkhn37.net</link>
	<description>Python学習サイト</description>
	<lastBuildDate>Sun, 23 Nov 2025 00:06:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://tech.nkhn37.net/wp-content/uploads/2021/01/cropped-lion-normal-clear-1-32x32.png</url>
	<title>「ElasticNet」タグの記事一覧Python Tech</title>
	<link>https://tech.nkhn37.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【scikit-learn】線形回帰の正則化手法 ~ラッソ(Lasso)回帰、リッジ(Ridge)回帰、ElasticNet回帰~</title>
		<link>https://tech.nkhn37.net/scikit-learn-lasso-ridge-elasticnet/</link>
					<comments>https://tech.nkhn37.net/scikit-learn-lasso-ridge-elasticnet/#respond</comments>
		
		<dc:creator><![CDATA[naoki-hn]]></dc:creator>
		<pubDate>Fri, 23 Sep 2022 20:00:00 +0000</pubDate>
				<category><![CDATA[scikit-learn]]></category>
		<category><![CDATA[ElasticNet]]></category>
		<category><![CDATA[Lasso]]></category>
		<category><![CDATA[Ridge]]></category>
		<guid isPermaLink="false">https://tech.nkhn37.net/?p=5007</guid>

					<description><![CDATA[Python の機械学習ライブラリである scikit-learn には線形回帰に正則化を適用した各種手法が実装されています。正則化が適用されている手法としてラッソ (Lasso) 回帰、リッジ (Ridge) 回帰、E [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Python の機械学習ライブラリである scikit-learn には線形回帰に正則化を適用した各種手法が実装されています。正則化が適用されている手法として<span class="jinr-d--text-color d--marker1 d--bold">ラッソ (Lasso) 回帰</span>、<span class="jinr-d--text-color d--marker1 d--bold">リッジ (Ridge) 回帰</span>、<span class="jinr-d--text-color d--marker1 d--bold">ElasticNet 回帰</span>について使用方法を解説します。</p>



<h2 class="wp-block-heading jinr-heading d--bold">線形回帰と正則化</h2>



<p class="wp-block-paragraph">回帰分析とは、予測したいデータに対して、既に与えられているデータから関係性を予測することを言います。この時に $x^{2}$、$x^{3}$ のような累乗の形がない線形の式で予測する方法のことを<span class="jinr-d--text-color d--marker1 d--bold">線形回帰</span>と言います。</p>



<p class="wp-block-paragraph">機械学習の分野では、学習データに対して過度にモデルが適合してしまうことを過学習（overfitting）と言います。未知データに対する予測誤差を汎化誤差と言いますが、過学習が起こると汎化誤差が大きくなります。このような時、汎化誤差が大きくならないようにモデルに手を加えることを<span class="jinr-d--text-color d--marker1 d--bold">正則化</span>と言います。</p>



<p class="wp-block-paragraph">線形回帰にも正則化を適用した各種手法があり、L1 正則化を適用したものを<span class="jinr-d--text-color d--marker1 d--bold">ラッソ (Lasso) 回帰</span>、L2 正則化を適用したものを<span class="jinr-d--text-color d--marker1 d--bold">リッジ (Ridge) 回帰</span>、L1 正則化と L2 正則化を組み合わせたものを <span class="jinr-d--text-color d--marker1 d--bold">ElasticNet 回帰</span>と言います。</p>



<p class="wp-block-paragraph">これらの各種正則化を適用した線形回帰手法は、Python の機械学習ライブラリである scikit-learn で既に実装されており、簡単に利用ができます。この記事では、各回帰手法の基本的な使い方を紹介します。</p>



<section class="wp-block-jinr-blocks-iconbox b--jinr-block b--jinr-iconbox"><div class="d--simple-iconbox6 ">
			<i class="jif jin-ifont-v2books" aria-hidden="true"></i>
			<div class="a--jinr-iconbox">
<p class="wp-block-paragraph">一般的な線形回帰 (<code>LinearRegression</code>) は「<a href="https://tech.nkhn37.net/scikit-learn-linearregression-basic/" target="_blank" rel="noreferrer noopener">LinearRegressionで線形回帰をする方法</a>」を参考にしてください。</p>



<p class="wp-block-paragraph">また、L1 正則化や L2 正則化の式の意味や効果については「<a href="https://tech.nkhn37.net/l1-l2-regularization/" target="_blank" rel="noreferrer noopener">L1正則化とL2正則化の概要と効果</a>」を参考にしてください。</p>
</div>
		</div></section>



<h2 class="wp-block-heading jinr-heading d--bold">scikit-learn での正則化回帰手法の使い方</h2>



<p class="wp-block-paragraph">正則化回帰手法であるラッソ (Lasso) 回帰、リッジ (Ridge) 回帰、ElasticNet 回帰の基本的な使い方について解説していきます。</p>



<h3 class="wp-block-heading jinr-heading d--bold">ラッソ (Lasso) 回帰</h3>



<h4 class="wp-block-heading jinr-heading d--bold">実装例</h4>



<p class="wp-block-paragraph"><span class="jinr-d--text-color d--marker1 d--bold">ラッソ (Lasso) 回帰</span>は、L1 正則化で線形回帰を正則化する回帰モデルです。scikit-learnでは、<span class="jinr-d--text-color d--marker1 d--bold"><code>sklearn.linear_model.Lasso</code></span> で実装されています。</p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">import numpy as np
from sklearn.datasets import make_regression
from sklearn.linear_model import Lasso
from sklearn.model_selection import train_test_split


def main():
    """メイン関数"""
    np.random.seed(123)
    np.set_printoptions(precision=3, suppress=True)

    # ===== 線形回帰を行うためのデータを生成する
    bias = 5.0
    noise = 50.0
    x, y, coef = make_regression(
        n_samples=100,
        n_features=10,
        n_informative=5,
        n_targets=1,
        coef=True,
        bias=bias,
        noise=noise,
    )
    print(f"true coef: {coef}")
    print(f"true bias: {bias:.3f}")

    # 学習用データとテスト用データを分割する
    train_x, test_x, train_y, test_y = train_test_split(x, y)

    # ===== Lasso回帰モデルを生成する
    model = Lasso(alpha=1.0)

    # ===== モデルを学習する
    model.fit(train_x, train_y)

    # 推定結果の表示
    print(f"coef: {model.coef_}")
    print(f"bias: {model.intercept_:.3f}")
    print(f"R2: {model.score(test_x, test_y):.3f}")


if __name__ == "__main__":
    main()</pre>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">【実行結果】
true coef: [ 0.    79.45   0.    18.045  0.    22.194 74.221  0.     0.    69.981]
true bias: 5.000
coef: [-1.322 78.107  5.754 25.559 -4.134 30.474 76.132  3.364  0.    69.677]
bias: 6.504
R2: 0.844</pre>



<h4 class="wp-block-heading jinr-heading d--bold">実装内容の解説</h4>



<p class="wp-block-paragraph">上記で紹介した実装例の各部分ごとに内容を説明していきます。</p>



<p class="wp-block-paragraph"><strong>必要モジュールのインポート</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">from sklearn.linear_model import Lasso</pre>



<p class="wp-block-paragraph">Lasso 回帰では、<code>sklearn.linear_model</code> から <span class="jinr-d--text-color d--marker1 d--bold"><code>Lasso</code></span> をインポートします。</p>



<p class="wp-block-paragraph"><strong>データセットの用意</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">    # ===== 線形回帰を行うためのデータを生成する
    bias = 5.0
    noise = 50.0
    x, y, coef = make_regression(
        n_samples=100,
        n_features=10,
        n_informative=5,
        n_targets=1,
        coef=True,
        bias=bias,
        noise=noise,
    )
    print(f"true coef: {coef}")
    print(f"true bias: {bias:.3f}")

    # 学習用データとテスト用データを分割する
    train_x, test_x, train_y, test_y = train_test_split(x, y)</pre>



<p class="wp-block-paragraph">今回は、<code>sklearn.datasets.make_regression</code> を使って線形回帰用のデータを用意します。各引数は以下の通りです。</p>



<ul class="wp-block-list jinr-list">
<li><code>n_samples</code> : データ数</li>



<li><code>n_features</code> : 特徴数</li>



<li><code>n_informative</code> : 特徴のうち説明に寄与する変数の数</li>



<li><code>n_targets</code> : 目的値</li>



<li><code>coef</code> : データを生成した線形モデルの係数を返却するか否か（<code>True</code>: 返却）</li>



<li><code>bias</code> : バイアス値</li>



<li><code>noise</code> : データに加えるガウスノイズの標準偏差</li>



<li><code>random_state</code> : 乱数のシード</li>
</ul>



<p class="wp-block-paragraph">乱数のシードは <code>np.random.seed</code> で設定していますが、<code>make_regression</code> の<code>random_state</code> 引数で指定することも可能です。</p>



<p class="wp-block-paragraph">また、<code>train_test_split</code> で学習用データとテスト用データを分割しています。</p>



<p class="wp-block-paragraph"><strong><code>Lasso</code> 回帰モデルの生成と学習</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">    # ===== Lasso回帰モデルを生成する
    model = Lasso(alpha=1.0)

    # ===== モデルを学習する
    model.fit(train_x, train_y)

    # 推定結果の表示
    print(f"coef: {model.coef_}")
    print(f"bias: {model.intercept_:.3f}")
    print(f"R2: {model.score(test_x, test_y):.3f}")</pre>



<p class="wp-block-paragraph">上記の部分で <code>Lasso</code> 回帰モデルを生成して学習しています。<code>alpha</code> が正規化項の強さを決めるハイパーパラメータです。省略するとデフォルトで <code>1.0</code> が設定されます。このパラメータを変えつつ実行して結果を確認してみてください。</p>



<p class="wp-block-paragraph">学習は <code>fit</code> メソッドで実行し、テストデータでの評価 (決定係数 $R^{2}$)は、<code>score</code> メソッドで計算しています。</p>



<section class="wp-block-jinr-blocks-iconbox b--jinr-block b--jinr-iconbox"><div class="d--simple-iconbox6 ">
			<i class="jif jin-ifont-v2books" aria-hidden="true"></i>
			<div class="a--jinr-iconbox">
<p class="wp-block-paragraph">sklearn.linear_model.Lass の公式ドキュメントは<a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html#sklearn-linear-model-lasso" target="_blank" rel="noreferrer noopener">こちら</a>を参照してください。</p>
</div>
		</div></section>



<h3 class="wp-block-heading jinr-heading d--bold">リッジ回帰 (Ridge) 回帰</h3>



<h4 class="wp-block-heading jinr-heading d--bold">実装例</h4>



<p class="wp-block-paragraph"><span class="jinr-d--text-color d--marker1 d--bold">リッジ (Ridge) 回帰</span>は、L2 正則化を用いて線形回帰を正則化する回帰モデルです。scikit-learnでは、<span class="jinr-d--text-color d--marker1 d--bold"><code>sklearn.linear_model.Ridge</code></span> で実装されています。</p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">import numpy as np
from sklearn.datasets import make_regression
from sklearn.linear_model import Ridge
from sklearn.model_selection import train_test_split


def main():
    """メイン関数"""
    np.random.seed(123)
    np.set_printoptions(precision=3, suppress=True)

    # ===== 線形回帰を行うためのデータを生成する
    bias = 5.0
    noise = 50.0
    x, y, coef = make_regression(
        n_samples=100,
        n_features=10,
        n_informative=5,
        n_targets=1,
        coef=True,
        bias=bias,
        noise=noise,
    )
    print(f"true coef: {coef}")
    print(f"true bias: {bias:.3f}")

    # 学習用データとテスト用データを分割する
    train_x, test_x, train_y, test_y = train_test_split(x, y)

    # ===== Ridge回帰モデルを生成する
    model = Ridge(alpha=1.0)

    # ===== モデルを学習する
    model.fit(train_x, train_y)

    # 推定結果の表示
    print(f"coef: {model.coef_}")
    print(f"bias: {model.intercept_:.3f}")
    print(f"R2: {model.score(test_x, test_y):.3f}")


if __name__ == "__main__":
    main()</pre>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">【実行結果】
true coef: [ 0.    79.45   0.    18.045  0.    22.194 74.221  0.     0.    69.981]
true bias: 5.000
coef: [-2.864 78.568  7.093 25.949 -5.22  31.006 76.181  4.424  1.229 70.14 ]
bias: 7.117
R2: 0.845</pre>



<h4 class="wp-block-heading jinr-heading d--bold">実装内容の解説</h4>



<p class="wp-block-paragraph">上記で紹介した実装例の各部分ごとに内容を説明していきます。Lasso 回帰で説明している部分については省略します。</p>



<p class="wp-block-paragraph"><strong>必要モジュールのインポート</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">from sklearn.linear_model import Ridge</pre>



<p class="wp-block-paragraph">Ridge 回帰では、<code>sklearn.linear_model</code> から <span class="jinr-d--text-color d--marker1 d--bold"><code>Ridge</code></span> をインポートします。</p>



<p class="wp-block-paragraph"><strong><code>Ridge</code> 回帰モデルの生成と学習</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">    # ===== Ridge回帰モデルを生成する
    model = Ridge(alpha=1.0)</pre>



<p class="wp-block-paragraph">上記の部分で <code>Ridge</code> 回帰モデルを生成しています。<code>alpha</code> が正規化項の強さを決めるハイパーパラメータです。省略するとデフォルトで <code>1.0</code> が指定されます。このパラメータを変えつつ実行して結果を確認してみてください。</p>



<p class="wp-block-paragraph">学習 (<code>fit</code>) 等の実行方法については、<code>Lasso</code> のコードと全く同じです。</p>



<section class="wp-block-jinr-blocks-iconbox b--jinr-block b--jinr-iconbox"><div class="d--simple-iconbox6 ">
			<i class="jif jin-ifont-v2books" aria-hidden="true"></i>
			<div class="a--jinr-iconbox">
<p class="wp-block-paragraph"><code>sklearn.linear_model.Ridge</code> の公式ドキュメントは<a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html#sklearn-linear-model-ridge" target="_blank" rel="noreferrer noopener">こちら</a>を参照してください。</p>
</div>
		</div></section>



<h3 class="wp-block-heading jinr-heading d--bold">ElasticNet 回帰</h3>



<h4 class="wp-block-heading jinr-heading d--bold">実装例</h4>



<p class="wp-block-paragraph"><span class="jinr-d--text-color d--marker1 d--bold">ElasticNet 回帰</span>は、L1 正則化と L2 正則化を組み合わせて正則化項を作るモデルです。scikit-learn では、<span class="jinr-d--text-color d--marker1 d--bold"><code>sklearn.linear_model.ElasticNet</code></span> で実装されています。</p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">import numpy as np
from sklearn.datasets import make_regression
from sklearn.linear_model import ElasticNet
from sklearn.model_selection import train_test_split


def main():
    """メイン関数"""
    np.random.seed(123)
    np.set_printoptions(precision=3, suppress=True)

    # ===== 線形回帰を行うためのデータを生成する
    bias = 5.0
    noise = 50.0
    x, y, coef = make_regression(
        n_samples=100,
        n_features=10,
        n_informative=5,
        n_targets=1,
        coef=True,
        bias=bias,
        noise=noise,
    )
    print(f"true coef: {coef}")
    print(f"true bias: {bias:.3f}")

    # 学習用データとテスト用データを分割する
    train_x, test_x, train_y, test_y = train_test_split(x, y)

    # ===== ElasticNet回帰モデルを生成する
    model = ElasticNet(alpha=1.0, l1_ratio=0.7)

    # ===== モデルを学習する
    model.fit(train_x, train_y)

    # 推定結果の表示
    print(f"coef: {model.coef_}")
    print(f"bias: {model.intercept_:.3f}")
    print(f"R2: {model.score(test_x, test_y):.3f}")


if __name__ == "__main__":
    main()</pre>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">【実行結果】
true coef: [ 0.    79.45   0.    18.045  0.    22.194 74.221  0.     0.    69.981]
true bias: 5.000
coef: [ 2.5   60.05   2.82  18.707 -7.325 22.637 62.551 -0.551 -0.667 53.213]
bias: -2.243
R2: 0.800</pre>



<h4 class="wp-block-heading jinr-heading d--bold">実装内容の解説</h4>



<p class="wp-block-paragraph">上記で紹介した実装例の各部分ごとに内容を説明していきます。Lasso 回帰や Ridge 回帰で説明している部分については省略します。</p>



<p class="wp-block-paragraph"><strong>必要モジュールのインポート</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">from sklearn.linear_model import ElasticNet</pre>



<p class="wp-block-paragraph">ElasticNet 回帰は、<code>sklearn.linear_model</code> から <code>ElasticNet</code> をインポートします。</p>



<p class="wp-block-paragraph"><strong><code>ElasticNet</code> 回帰モデルの生成と学習</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">    # ===== ElasticNet回帰モデルを生成する
    model = ElasticNet(alpha=1.0, l1_ratio=0.7)</pre>



<p class="wp-block-paragraph">上記の部分で <code>ElasticNet</code> 回帰モデルを生成しています。<code>alpha</code> が正規化項の強さを決めるハイパーパラメータです。省略するとデフォルトで <code>1.0</code> が指定されます。</p>



<p class="wp-block-paragraph"><code>ElasticNet</code> では、<code>l1_ratio</code> を設定することで L1 正則化と L2 正則化項の効果の割合を指定することができます。例えば、<code>l1_ratio=0.7</code> のように設定すると L1 正則化の割合が 70%、L2 正則化が 30% の強さで効果があるように設定ができます。なお、<code>l1_ratio</code> を指定しない場合は、<code>l1_ratio=0.5</code> になります。つまりは L1 正則化が50%、L2 正則化が 50% という効果になります。</p>



<p class="wp-block-paragraph">学習 (<code>fit</code>) 等の実行方法については、<code>Lasso</code> や <code>Ridge</code> のコードと全く同じです。</p>



<section class="wp-block-jinr-blocks-iconbox b--jinr-block b--jinr-iconbox"><div class="d--simple-iconbox6 ">
			<i class="jif jin-ifont-v2books" aria-hidden="true"></i>
			<div class="a--jinr-iconbox">
<p class="wp-block-paragraph">sklearn.linear_model.ElasticNet の公式ドキュメントは<a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.ElasticNet.html#sklearn-linear-model-elasticnet" target="_blank" rel="noreferrer noopener">こちら</a>を参照してください。</p>
</div>
		</div></section>



<h2 class="wp-block-heading jinr-heading d--bold">まとめ</h2>



<p class="wp-block-paragraph">Python の機械学習ライブラリである scikit-learn において正則化が適用されている回帰手法の<span class="jinr-d--text-color d--marker1 d--bold">ラッソ (Lasso) 回帰</span>、<span class="jinr-d--text-color d--marker1 d--bold">リッジ (Ridge) 回帰</span>、<span class="jinr-d--text-color d--marker1 d--bold">ElasticNet 回帰</span>について使用方法を解説しました。</p>



<p class="wp-block-paragraph">Lasso 回帰が L1 正則化、Ridge 回帰が L2 正則化、ElasticNet 回帰は L1 と L2 を組み合わせたものです。この記事では、各手法の基本的な使い方を紹介しました。</p>



<p class="wp-block-paragraph">L1 正則化は、重要なパラメータを残して不要なパラメータを 0 にする（スパースにする）効果があり、L2 正則化はパラメータを全体的に小さくする効果があります。目的に応じて Lasso 回帰、Ridge 回帰、ElasticNet 回帰を使いつつ比べてみてください。</p>



<section class="wp-block-jinr-blocks-simplebox b--jinr-block-container"><div class="b--jinr-block b--jinr-box d--heading-box8  "><div class="a--simple-box-title d--bold">ソースコード</div><div class="c--simple-box-inner">
<p class="wp-block-paragraph">上記で紹介しているソースコードについては <a href="https://github.com/nkhn37/python-tech-sample-source/tree/main/python-data-analysis/scikit-learn/linear-regression-regularization" target="_blank" rel="noreferrer noopener">GitHub</a> にて公開しています。参考にしていただければと思います。</p>
</div></div></section>


<section class="b--jinr-block b--jinr-blogcard d--blogcard-hover-up d--blogcard-style1 d--blogcard-mysite t--round "><div class="a--blogcard-label ef">あわせて読みたい</div><a class="o--blogcard-link t--round" href="https://tech.nkhn37.net/python-tech-summary-page/"><div class="c--blogcard-image"><img decoding="async" class="a--blogcard-img-src" width="128" height="72" src="https://tech.nkhn37.net/wp-content/uploads/2024/08/Python-Tech-Pythonプログラミングガイド_new1-640x360.jpg" alt="【Python Tech】プログラミングガイド" /></div><div class="a--blogcard-title d--bold">【Python Tech】プログラミングガイド</div></a></section>


<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tech.nkhn37.net/scikit-learn-lasso-ridge-elasticnet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Disk: Enhanced  を使用したページ キャッシュ

Served from: tech.nkhn37.net @ 2026-07-04 09:20:39 by W3 Total Cache
-->