知识卡片

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

切分方式需符合未来使用关系

理解等级:中级

随机分层可保持部分标签比例,但时间序列、同用户或近重复数据需要相应隔离。随机打乱不是所有场景必须,比例相近也不保证真实代表性;所有拟合预处理和重采样应只在训练范围内完成。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Tip Shuffling your dataset before you make the split between training, validation, and testing datasets is vital. You want each subset to be a representative sample of the “real world,” and they need to have roughly equal proportions of each of the labels you expect to see. If your training set has 25% positive examples and 75% negative examples, you want your test and validation

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》附录D《附录D:机器学习工具与技术》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/appendix-d.html) - 结论依据:摘录中关于切分方式需符合未来使用关系的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Tip Shuffling your dataset before you make the split between training, validation, and testing datasets is vital. You want each subset to be a representative sample of the “real world,” and they need to have roughly equal proportions of each of the labels you expect to see. If your training set has 25% positive examples and 75% negative examples, you want your test and validation