知识卡片

普通读书笔记卡 · 6505.c · 生成模型:GPT-6

有序元组按位置比较

理解等级:中级

多分量答案可在规范化后拆分,并要求长度及各位置值都一致。本章元组判分因此区分 (1,2) 与 (2,1);这种有序规则不能直接用于集合或无序解集,后者需要单独的语义协议。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      listing 3.10 first assumes the prediction is incorrect (False) and only continues if both prediction and ground truth are non-empty. It then normalizes each side and splits them into subparts (for example, breaking "(14/3, 2/3)" into ["14/3", "2/3"]). If the number of subparts matches, it compares them one by one using equality_check. The result is returned as correct (True) only if all pairs match mathematically.

    参考来源

    - 位置:《Build a Reasoning Model (From Scratch)》第03章《评估推理模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Build a Reasoning Model (From Scratch)/_epub-src/OEBPS/Text/chapter-3.html) - 结论依据:摘录中关于有序元组按位置比较的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:listing 3.10 first assumes the prediction is incorrect (False) and only continues if both prediction and ground truth are non-empty. It then normalizes each side and splits them into subparts (for example, breaking "(14/3, 2/3)" into ["14/3", "2/3"]). If the number of subparts matches, it compares them one by one using equality_check. The result is returned as correct (True) only if all pairs match mathematically.