<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>olj611</author_name>
  <author_url>https://blog.hatena.ne.jp/olj611/</author_url>
  <blog_title>機械学習基礎理論独習</blog_title>
  <blog_url>https://olj611.hatenablog.com/</blog_url>
  <categories>
    <anon>線形回帰</anon>
  </categories>
  <description>乱数の固定 現象が再現するように乱数を固定します。 # ランダムシードを設定する(乱数を固定する) np.random.seed(1) 入力空間と特徴空間 今回のプログラムでは入力空間は1次元です。 その入力空間の元 を非線形写像 で写した特徴空間で回帰します。 目標値 と入力値 の関係は で は平均が 、標準偏差が の正規分布に従います。 計画行列 は以下の式で表されます。ですが、プログラムでは、以下の図1のようにしています。図1 プログラムで最初に作成する Phi は であることに注意してください。 sklearn.linear_model.LinearRegression に仕様を合わせ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Folj611.hatenablog.com%2Fentry%2F2021%2F06%2F12%2F000000&quot; title=&quot;【Pythonフルスクラッチ】曲線フィッティング - 機械学習基礎理論独習&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/o/olj611/20210611/20210611050620.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-12 00:00:00</published>
  <title>【Pythonフルスクラッチ】曲線フィッティング</title>
  <type>rich</type>
  <url>https://olj611.hatenablog.com/entry/2021/06/12/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
