知识卡片

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

导入额外编号不应默认成为特征

理解等级:中级

CSV示例比内置数据多出Column_1行序号。删除price后它仍留在X,需判断它只是导出索引还是有效预测信息;即使数值类型合法,任意序号也可能引入伪规律或暴露数据排序。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      (53940, 11) df. columns Index([‘Column_1’, ‘carat’, ‘cut’, ‘color’, ‘clarity’, ‘depth’, ‘table’, ‘price’, ‘x’, ‘y’, ‘z’], dtype=‘object’) df. dtypes Column_1 int64 carat float64 cut object color object clarity object depth float64 table float64 price int64 x float64 y float64

    参考来源

    - 位置:《Machine Learning Fundamentals: Concepts, Models, and Applications》第05章《使用数据》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Machine Learning Fundamentals: Concepts, Models, and Applications/_epub-src/OEBPS/xhtml/17_chapter05.xhtml) - 结论依据:摘录中关于导入额外编号不应默认成为特征的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:(53940, 11) df. columns Index([‘Column_1’, ‘carat’, ‘cut’, ‘color’, ‘clarity’, ‘depth’, ‘table’, ‘price’, ‘x’, ‘y’, ‘z’], dtype=‘object’) df. dtypes Column_1 int64 carat float64 cut object color object clarity object depth float64 table float64 price int64 x float64 y float64