All courses › Machine Learning and Data Analysis › Linear model
Linear model
The simplest model that learns from data is a straight line. The weight says how much the answer changes when the feature increases by one, and the intercept moves the line up or down. Learning means finding the values that give the smallest error.
linear model
with several features
Symbols
| weight (slope) | ||
| intercept | ||
| model prediction |
Example
predicts 9 for .
Neural networks are basically many such linear terms combined with non-linear functions.
Practise linear regression and gradient descent for free →
← Mean squared error · Gradient descent →
Part of Machine Learning and Data Analysis: Linear regression and gradient descent.