损失函数Loss Function
Loss Function
把「预测得有多错」变成一个可求导的数值,训练就是把它压小。Turn “how wrong the prediction is” into a differentiable number; training minimises it.
不同任务用不同损失。分类常用交叉熵,回归常用均方误差,语言模型用下一 token 的交叉熵。
损失设计会改变模型学到的偏好,不只是优化技巧。
Different tasks use different losses: cross-entropy for classification, mean squared error for regression, next-token cross-entropy for language models.
Loss design changes what the model prefers. It is not merely an optimisation trick.
指标和损失不是一回事;损失降了但业务指标不升很常见。Metrics and losses are not the same thing. A falling loss with a flat business metric is common.
loss · 目标函数 · 代价函数
回到名词地图看第4段的其他 60 个词 →Back to the map: the other 60 terms in stage 4 →
别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.
任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →