Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

练习

4.1 为什么微平均准确率必定等于微平均召回率?

4.2 在 1,000 封邮件上运行垃圾邮件分类器,其中 40 封确为垃圾邮件。分类器把 30 封标为垃圾邮件,其中 24 封判断正确。计算正确率、准确率、召回率和 F1F_1。然后计算一个把所有邮件都标为非垃圾邮件的分类器的正确率。哪个指标最有用?为什么?

4.3 使用一个负训练样本重新完成第 4.6.3 节的梯度下降步骤:y=0y=0,令 x=[2,5]\mathbf x=[2,5],初始权重与学习率 η=0.1\eta=0.1 保持不变。报告新的 w1,w2,bw_1,w_2,b,并验证 w2w_2 的移动方向与该节末尾的预测一致。