← 返回刚才阅读的位置

知识卡片

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

固定随机种子有明确的复现边界

理解等级:中级

固定切分及随机模型种子,有助同环境重现数据划分和初始化。它不替代数据版本、依赖、预处理和模型参数记录,也不保证跨硬件或版本逐位相同;一个稳定划分更不能说明各种人群或时间段均有效。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Tip Note the random_state parameter for the train_test_split. The algorithm for train_test_split() is stochastic, so each time you run it, you will get different results and different accuracy values. If you want to make your pipeline repeatable, look for the seed argument for these models and dataset splitters. You can set the seed to the same value with each run to get reproducible results.

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第04章《从词数到语义分析》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-4.html) - 结论依据:摘录中关于固定随机种子有明确的复现边界的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Tip Note the random_state parameter for the train_test_split. The algorithm for train_test_split() is stochastic, so each time you run it, you will get different results and different accuracy values. If you want to make your pipeline repeatable, look for the seed argument for these models and dataset splitters. You can set the seed to the same value with each run to get reproducible results.