Course Elementsofai (1)
Course Elementsofai (1)
III. Regression
Our main learning objective in this section is
another nice example of supervised learning
methods, and almost as simple as the
nearest neighbor classifier too: linear
regression. We’ll introduce its close cousin,
logistic regression as well.
Note
Note
Key terminology
Coefficients or weights
In linear regression terminology, the prices of the
different products would be called coefficients or
weights (this may appear confusing since we
measured the amount of potatoes and carrots by
weight, but do not let yourself be tricked by this).
One of the main advantages of linear regression is
its easy interpretability: the learned weights may
in fact be more interesting than the predictions of
the outputs.
Unanswered
Note
Example
Continuing the shopping analogy, suppose we
were given the contents of a number of shopping
baskets and the total bill for each of them, and we
were asked to figure out the price of each of the
products (potatoes, carrots, and so on). From one
basket, say 1kg of sirloin steak, 2kg of carrots, and
a bottle of Chianti, even if we knew that the total
bill is 35€, we couldn’t determine the prices
because there are many sets of prices that will
yield the same total bill. With many baskets,
however, we will usually be able to solve the
problem.
60
55
50
45
40
Lines of code written
35
30
25
20
15
10
0
0 1 2 3 4 5 6 7 8 9 10
Cups of coffee per day
Unanswered
Unanswered
Unanswered
90%
80%
70%
Probability of passing
60%
50%
40%
Note
Next Chapter
Neural networks
Start →
Introduction to AI
Building AI
About
FAQ
Privacy Policy
Sign in Sign up