Standford Machine Learning - Performance Tuning
lecture 5
-
Error-Order chart (neural network can use Error-layer chart to decide how many layers)
-
Error-Lambda chart
-
Learning curve(Error-Sample size chart)
3.1 the theta trained each should be with regularization and with growing training sample size.
3.2 the displayed training model should not be regularized but with growing training sample size.
3.3 the displayed validation model should not be regularizaed but with all sample size.
lecture 6 System Design
-
Spam classier as a example how to estimate algorithm to use
4.1 use honey spot project to create lots of spam data to use
4.2 email header(router info)
4.3 specific vocabulary
4.4 misspellings
4.5 unsual punctuation (too many disapearance) -
There are many algorithm we list to try for machine learning. We should buildup “error analysis” for saving trying time.
5.1 using 24 hours to buildup a dirty workable prototype and pass validation set, we should quickey define the real difficulies in classifier
5.2 Plot learning curve => judge high bias or high variance problem, find out needing more features or data? we can’t know this before we start a unknown machines learning algorithm.
5.3 Error Analysis : after using validation set, we can use examine the wrong preditions to inspire us to improve algorithm ex more features…
5.4 After trying new algorithm to extract features ex: porter stemmer, please use validation set to estimate error rate -
presion/recall, helpful to metric skewed class(rara condition like cancer) to avoid cheating on algorithm(keeping output a single value for all samples)
-
trade off between presion and recall(ex: only if h(theta) >= 0.7, y=1 so presion will be high, recall will be low; >= 0.3, y=1 presion will be low ,recall will be hight). It depends on goal.
-
Average = (presion+recall)/2 is not a good method to estimate algorithm quality; we usually use F1 score = 2PR/(P+R), if P or R equal zero, F1 equal zero
-
because we use F1 to descide the parameter threshold - h(theta) shoud >= threshold, so we shoud use validation set but not test set
-
very Large data sets will improve the performance even with bad algoright only when
6.1 data with enought features
6.2 learning algorithm have enought parameters to modeling the features ex: neural network
lecture 7
Logistric are very similar to SVM linear kernel which is convex optimization(can find global minization)
-
Features(10000) > sample size(10-1000), suitable to use SVM linear kernel or logistic regression.
-
Feature small(1-1000), sample size(10-10000) is intermediate not very large, SVM gussian kernel(features == samples) is better.
-
Feature small(1-1000), samples very large(500000+), SVM gussian will be very slow. It suggest that creating more features and use SVM linear instead.
-
Neural network may work well in the cases above with appropriate tuning but may slow more.