← 返回刚才阅读的位置

知识卡片

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

类别编码的选择

理解等级:中级

独热编码为类别建立指示列,适合无顺序且基数可控的类别。整数编码只占一列,把无序类别交给按大小或距离运算的模型时,整数可能引入虚假的顺序。二进制编码把整数类别号拆成若干位来减少列数。书例只展示了位串,入模前需转数值位。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Pre-processing · 查看原书依据

      Categorical variables are often converted into numerical representations for Machine Learning models. Common encoding techniques include one-hot encoding, label encoding, and binary encoding. Encoding categorical variables is a crucial pre-processing step in Machine Learning. There are various techniques to encode categorical variables, including one-hot

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 02 章《Data Pre-processing》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch02.xhtml`,book-source 项目,正文索引第 265 段) - 结论依据:小节介绍三种方法,示例分别生成指示列、整数类别码和二进制表示,结尾要求根据模型选择方法。 - 原始内容:Categorical variables are often converted into numerical representations for Machine Learning models. Common encoding techniques include one-hot encoding, label encoding, and binary encoding. Encoding categorical variables is a crucial pre-processing step in Machine Learning. There are various techniques to encode categorical variables, including one-hot