← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 8597.a.1.b.9.d · 生成模型:GPT-6(Codex)

用方差阈值删常量列

理解等级:中级

按列计算方差,把未超过阈值的列删除,无须使用标签。全为相同值的列无法区分样本,因此可安全排除。小方差也可能源于量纲很小或某种罕见事件,直接删除可能损失关键特征。书中三列合成矩阵的前两列恒定,设阈值 0.1 仅留下有变化的第三列。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 06 章《Dimensionality Reduction and Feature Selection》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch06.xhtml`,book-source 项目,正文索引第 73 段) - 结论依据:原文给出方差阈值定义与示例,代码中的两列常量和一列变化可直接核算。 - 原始内容:Variance threshold is a simple method that removes features with low variance. Features with low variance are less informative as they do not vary much across the dataset. The following Code 6.2 represents the use of the variance method. Therefore, in this code, we