回归模型例子–房价预测–第二章
一、架构问题,关注蓝图
- 确定机器学习的类型,监督还是无监督,分类还是回归,批量学习还是在线学习。
- 选择误差衡量指标,回归模型常见的是均方根误差(RMSE)
RMSE与MAE区别
- 当有很多离群区域时, 你可以考虑使用平均绝对误差(也称为平均绝对偏差)
- RMSE对应L2范数,MAE对应L1范数
- 范数指数越高,则越关注大的价值,忽视小的价值。RMSE比MAE对异常值更敏感。但是当异常值非常稀少(例如钟形曲线)时, RMSE的表现优异,通常作为首选。
二、数据处理/模型构建
详细笔记 02_end_to_end_machine_learning_project