(二)Linear Neural Networks -- 1. Linear Regression Implementation from Scratch
阿新 • • 發佈:2021-01-18
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