Codele / Machine learning: one neuron to deep learning
Linear regression
Put the pieces together: slide a straight line into place among some dots with gradient descent, then use it to guess a price nobody has told us yet.
- A line is a model with two adjustable numbers: the slope (the weight) and the start height (the bias).
- The loss (mean squared error) is the average squared miss between the line and the dots. Small loss means a good fit.
- Gradient descent nudges both numbers downhill, round after round, until the steps get small and the line fits.
- A prediction is the line's answer for a size it has never seen: slope times size plus start height.
- Linear regression means fitting a straight line to predict a number.
Loading the playable lesson…