November 2017
Intermediate to advanced
1035 pages
11h 31m
English
We have used a learning algorithm to estimate a model's parameters from the training data. How can we assess whether our model is a good representation of the real relationship? Let's assume that you have found another page in your pizza journal. We will use the entries on this page as a test set to measure the performance of our model:
|
Test Instance |
Diameter (in inches) |
Observed price (in dollars) |
Predicted price (in dollars) |
|---|---|---|---|
|
1 |
8 |
11 |
9.7759 |
|
2 |
9 |
8.5 |
10.7522 |
|
3 |
11 |
15 |
12.7048 |
|
4 |
16 |
18 |
17.5863 |
|
5 |
12 |
11 |
13.6811 |
Several measures can be used to assess our model's predictive capabilities. We will evaluate our pizza-price predictor using r-squared. R-squared measures how well the observed values of the response ...
Read now
Unlock full access