Notes of Advice for applying machine learning

Evaluating a hypothesis


Data sets are seperated to 3 parts:

1.training sets (60%)

2.validation sets (20%)

3.test sets (20%)

So there are 3 kinds of errors:

1.Training error -> train model

2.Cross Validation error -> select model

3.Test error -> estimate generalization error

Diagnosing bias vs. variance


-By the relationship between degree of polynomial and error


Notes of Advice for applying machine learning_第1张图片


Notes of Advice for applying machine learning_第2张图片

-By the relationship between regularization parameter lambda and error


Notes of Advice for applying machine learning_第3张图片

-By learning curves


Notes of Advice for applying machine learning_第4张图片
Notes of Advice for applying machine learning_第5张图片

What to try next? 


1.Get more training example -> fix high variance (overfit)

2.Try smaller sets of features -> fix high variance (overfit)

3.Try get additional features -> fix high bias (underfit)

4.Try adding polynomial features -> fix high bias (underfit)

5.Try descreasing lambda -> fix high bias (underfit)

6.Try increasing lambda -> fix high variance (overfit)

7.Try larger neural network -> fix high bias (underfit)

8.Try smaller neural network -> fix high variance  (overfit)

你可能感兴趣的:(Notes of Advice for applying machine learning)