知识卡片
用训练统计量缩放测试
标准化用训练样本的均值和尺度把各列变换到可比较的尺度。应先划分训练和测试数据,只用训练子集调用 fit_transform,对测试子集使用已拟合对象的 transform。这样避免在训练前处理时利用测试样本的统计量,也保证 KNN 等模型在训练与测试时看到同样的坐标系统。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Project · 查看原书依据
In the next step, classification models are applied to determine the accuracy of the system. The data values are pre-processed and standardized using a standard scaler. We use logistic regression, K nearest neighbors, decision tree, random forest, and AdaBoost Machine Learning techniques to determine
参考来源
- 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 10 章《Project》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch10.xhtml`,book-source 项目,正文索引第 168 段)
- 结论依据:模型章节明确用标准化和共同指标,五套代码都先切分、再训练集拟合 scaler、测试集只变换。
- 原始内容:In the next step, classification models are applied to determine the accuracy of the system. The data values are pre-processed and standardized using a standard scaler. We use logistic regression, K nearest neighbors, decision tree, random forest, and AdaBoost Machine Learning techniques to determine