1.1 Why ML Strategy
Ideas for improving NN:
- Collect more data
- Collect more diverse training set
- Train algorithm longer with gradient descent
- Try Adam instead of gradient descent
- Try bigger network
- Try smaller network
- Try dropout
- Add L2 regularization
- Network architecture
- Activation functions
- # hidden units
Objective of ML Strategy: Teach a number of strategies that is, ways of analyzing a machine learning problem that will point you in the direction of the most promising things to try
1.2 Orthogonalization
Fit training set well on cost function
Fit dev set well on cost function
Fit test set well on cost function
Performs well in real world
Tips: Tune separately, you'd better not use early stopping, cause it affect 2 things at same time.
1.3 Setting up yout goal
Set up a single real number evaluation metric for your problem
Not Recommended to use 2 metric precision and recall to pick a classifier, you just have to find a new evaluation metric that combines precision and recall
In this case, we can use F1 score, the F1 score is defined by the formula P represent precision, R represents Recall
F1 score = Harmonic mean of precision P and recall R
Dev set + Single number evaluation metric will speed up iterating.