March 2020
Beginner to intermediate
352 pages
8h 40m
English
We have used the scikit-learn library to train a regression model. In addition to that, we have used the trained model to predict some data, and then we computed the accuracy. For example, examine Figure 9.5. The first entry says the actual value is 28.4 but our trained regression model predicted it to be 25.153909. Hence, we have a discrepancy of 28.4 - 25.153909 = 3.246091. Let's try to understand how these discrepancies are understood. Let xi be the actual value and
be the value predicted by the model for any sample i.
The error is given by the following formula:
For any sample i, we can get the difference between ...
Read now
Unlock full access