Introduction
So how do people learn?
"Machine Learning" is—obviously—far more simplistic.
Different problems require different modeling approaches:
(Lecture 10: Exploratory Data Analysis)
y = mx + b
m
and b
total = 0
for point in points:
err = distance(point, line)
total += (err * err)
MSE = total / len(points)
There is a solution that will find the slope (m) and y-intercept (b) of a line that minimizes MSE. It is called Ordinary least squares (OLS) regression
\[\begin{aligned} m = \frac{\sum_{(x_{i} - \overline{x})(y_{i} - \overline{y})}}{\sum_(x_{i} - \overline{x})^2} \\ b = \overline{y} - m * \overline{x} \\ \end{aligned} \]Another (more general method) to minimize a loss function like MSE
When the slope is zero, we know we have minimized our loss function
As we get closer, our steps get smaller and smaller
There are two main categories of machine learning algorithms