第3章回帰のための線形ニューラルネットワーク
3.3. Synthetic Regression Data3.3 回帰のための合成データ
Machine learning is all about extracting information from data. So you might wonder, what could we possibly learn from synthetic data? While we might not care intrinsically about the patterns that we ourselves baked into an artificial data generating model, such datasets are nevertheless useful for didactic purposes, helping us to evaluate the properties of our learning algorithms and to confirm that our implementations work as expected. For example, if we create data for which the correct parameters are known a priori, then we can check that our model can in fact recover them.
英語のヒント
機械学習とは、つまるところデータから情報を引き出すことである。だから、合成データからいったい何を学べるのかと疑問に思うかもしれない。人工的なデータ生成モデルに私たち自身が焼き込んだパターンそのものには関心がないかもしれないが、それでもこうしたデータセットは教育の目的に役立ち、学習アルゴリズムの性質を評価したり、実装が期待どおりに動くことを確かめたりするのを助けてくれる。たとえば、正しいパラメータが前もってわかっているデータを作れば、モデルが実際にそれを取り戻せるかを確かめられる。
%matplotlib inline
import random
import torch
from d2l import torch as d2l