1. 程式人生 > 其它 >(二)Linear Neural Networks -- 1. Linear Regression Implementation from Scratch

(二)Linear Neural Networks -- 1. Linear Regression Implementation from Scratch

技術標籤:Dive into Deep Learning

1. Linear Regression Implementation from Scratch

1.1 Generating the Dataset

To keep things simple, we will construct an artificial dataset according to a linear model with additive noise.

Our task will be to recover this model’s parameters using the finite set of examples contained in our dataset.

We generate a dataset containing 1000 examples, each consisting of 2 features sampled from a standard normal distribution. Thus our synthetic dataset will be a matrix