Skip to main content

Estimated reading time: 2 minute(s).

Debugging a Learning Algorithm

Reference: https://www.coursera.org/learn/advanced-learning-algorithms/lecture/WbRtr/deciding-what-to-try-next-revisited

You've implemented regularized linear regression on housing prices, but it makes unacceptably large errors in predictions. What do you try next?

The cost function for regularized linear regression is given by:

Bias and Variance

High bias and high variance describe two different issues related to the performance of machine learning models on training and validation (or test) datasets.

In summary, if the training error differs significantly from the validation error, with much lower error on the training set, it's a sign of high variance, not high bias. High variance suggests that the model is overfitting the training data and not generalizing well to unseen data.