November 2017
Intermediate to advanced
1035 pages
11h 31m
English
We learned about quantifying the error in classification, now we'll discuss quantifying the error for continuous problems. For example, we're trying to predict an age, not a gender.
Like the classification, we'll fake some data, then plot the change. We'll start simple, then build up the complexity. The data will be a simulated linear model:
m = 2 b = 1 y = lambda x: m*x+b
Also, let's get our modules loaded:
>>> import numpy as np >>> import matplotlib.pyplot as plt >>> from sklearn import metrics
We will be performing the following actions:
'y' to generate 'y_actual'.'y_actual' plus some err to generate 'y_prediction'.Read now
Unlock full access