There's more...

Consider a linear regression model, given the following hypothesis function:

In this case, the cost function for  is the mean squared error (MSE).

The formula is as follows:

In this formula,  represents the number of training instances.  and  are the input vector and the target vector for the ith training instance respectively, ...

Get Ensemble Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.