XI. Machine Learning System Design(Week 6)

机器学习Machine Learning – Andrew NG courses学习笔记

Machine Learning System Design机器学习系统设计

Prioritizing What to Work On优先考虑做什么

the first decision we must make is how do we want to represent x, that is the features of the email.

Note:feature的选择

1. chose a hundred words to use for this representation manually.

2. in practice,look through a training set, and in the training set depict(描述) the most frequently occurring n words where n is usually between ten thousand and fifty thousand, and use those as your features.

用数据预处理降低错误率

Note:

1. getting lots of data will often help, but not all the time.

2. when spammers send email,very often they will try to obscure(隐藏) the origins of the email, and maybe use fake email headers.Or send email through very unusual sets of computer service.Through very unusual routes, in order to get the spam to you.3. the spam classifier might not equate "w4tches" as "watches," and so it may have a harder time realizing that something is spam with these deliberate misspellings.And this is why spammers do it.

Error Analysis 错误分析

{help give you a way to more systematically make some of these decisions of different ideas on how to improve the algorithm.quick way to let you identify some errors and quickly identify what are the hard examples so that you can focus your efforts on those.}

设计机器学习系统的建议步骤

Note:

error analysis on the emails would inspire you to design new features.Or they’ll tell you whether the current things or current shortcomings of the system and give you the inspiration you need to come up with improvements to it.错误分析的一个例子

Note:

1. 计算准确率Accuracy = (true positives + true negatives) / (total examples)判断

2. by counting up the number of emails in these different categories that you might discover, for example, that the algorithm is doing really particularly poorly on emails trying to steal passwords, and that may suggest that it might be worth your effort to look more carefully at that type of email, and see if you can come up with better features to categorize them correctly.3. a strong sign that it might actually be worth your while to spend the time to develop more sophisticated features based on the punctuation.numerical evaluation of your learning algorithm

note:

1. using a stemming software can help but it can hurt.2. We’ll see later, examples where coming up with this, sort of, single row number evaluation metric may need a little bit more work.then let you make these decisions much more quickly.

Error Metrics for Skewed Classes有偏类的错误度量(精确度/召回率)

skewed class: in this case, the number of positive examples is much,much smaller than the number of negative examples.

Note:

1. So a non learning algorithm just predicting y equals 0 all the time is even better than the 1% error.

2. By going from 99.2% accuracy to 99.5% accuracy.we just need a good change to the algorithm or not?it becomes much harder to use just classification accuracy, because you can get very high classification accuracies or very low errors, and it’s not always clear if doing so is really improving the quality of your classifier because predicting y equals 0 all the time doesn’t seem like a particularly good classifier.

木已成舟便要顺其自然

XI. Machine Learning System Design(Week 6)

相关文章:

你感兴趣的文章:

标签云: