Table of Contents

X - Advice for Applying Machine Learning

10.1 - Deciding what to try next

10.2 - Evaluating a hypothesis

\[err(h_\theta(x),y) = \begin{cases} 1 & \text{if }(h_\theta(x) \ge 0.5 \text{ and } y=0)\text{ or }(h_\theta(x) \lt 0.5 \text{ and } y=1) \\ 0 & \text{otherwise (eg. no error detected)} \end{cases}\]

⇒ This is the proportion of errors we have in the test set.

10.3 - Model selection and Train/Validation/Test sets

⇒ The problem here is that we are using the test set to select the value of the additional parameter d = polynomial degree so this is going to be an optimistic estimate on how well the hypothesis will perform on a completely new dataset.

10.4 - Diagnosing Bias vs Variance

10.5 - Regularization and Bias/Variance

\[J_{train}(\theta) = \frac{1}{2m} \sum\limits_{i=1}^m (h_\theta(x^{(i)}) - y^{(i)})^2\]

10.6 - Learning Curves

10.7 - Deciding What to do Next Revisited