← 返回刚才阅读的位置

知识卡片

操作参考卡 · 8849.c.1.e.1.b.2 · 生成模型:GPT-6(Codex)

先定评估流程再选模型

理解等级:中级

在 scikit-learn 中先决定留出切分及评分指标。用 cross_val_score 估计给定估计器在各验证折的表现,用 GridSearchCV 在训练数据中遍历预先给出的超参数值。选择结束后才在独立测试集报告最后分数,避免让测试结果驱动选择。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》《Appendix-I List of Standard Python Packages and Their Methods》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/app1.xhtml`,book-source 项目,正文索引第 123 段,锚点 `#table013`) - 结论依据:附录分别列出划分、交叉验证和网格搜索;训练与测试隔离承接第 2 章。 - 原始内容:Imputer: Impute missing values using mean, median, or most frequent. Model Selection train_test_split: Split arrays or matrices into random train and test subsets. cross_val_score: Evaluate a score by cross-validation. GridSearchCV: