知识卡片
减少候选模型可能改变程序责任
若旧程序负责比较七模型,删掉六模型是功能缩减;若已确认唯一需保留产物且其他训练无必要副作用,才可删除。必须先约定可观察契约,不能只因新测试没测这些输出就认定它们全是死代码。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 重构与技术债
原书出处 · 1 处
- · 查看原书依据
only return the best performing model, the lines of code for training the six other candidate models are essentially dead. This means that the program will function according to our expectations (i.e., our tests will still pass) with or without these lines of code (highlighted in Figure 8-9).
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第08章《重构与技术债》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch08.html)
- 结论依据:摘录中关于减少候选模型可能改变程序责任的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:only return the best performing model, the lines of code for training the six other candidate models are essentially dead. This means that the program will function according to our expectations (i.e., our tests will still pass) with or without these lines of code (highlighted in Figure 8-9).