December 2018
Intermediate to advanced
158 pages
3h 58m
English
In a realistic example, we would have more than one feature and each feature has an associated parameter value that requires fitting. We write the hypothesis function for multiple features as follows:
Here, x0 is called the bias variable and is set to one, x1 to xn are the feature values, and n is the total number of features. Notice that we can write a vectorized version of the hypothesis function. Here, θ is the parameter vector and x is the feature vector.
The cost function is still basically the same as the single feature case; we are just summing the error. We do, however, need to adjust the gradient descent rules ...
Read now
Unlock full access