知识卡片

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

交易编码后分两步挖规则

理解等级:中级

先把交易表转成布尔矩阵,一行一笔交易、一列一个项目,值表示该交易是否包含该项。先用最小支持度筛出频繁项集,再以置信度等阈值从中生成规则。书中五笔样本用 0.2 和 0.7 分别约束两个阶段。最终把前后项、样本覆盖、置信度与提升度一起读,避免把小分母上的高置信度当成稳定信号。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Association Rule Mining · 查看原书依据

      In this code, necessary libraries are imported including the apriori for the Apriori algorithm, TransactionEncoder for one-hot encoding, and pandas for handling data. A sample transaction dataset is defined, where each list represents a transaction. A one-hot encoded DataFrame is created by using the

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 07 章《Association Rule Mining》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch07.xhtml`,book-source 项目,正文索引第 139 段) - 结论依据:例程说明独热编码、支持度筛选和置信度生成,并打印前项、后项及三种指标。 - 原始内容:In this code, necessary libraries are imported including the apriori for the Apriori algorithm, TransactionEncoder for one-hot encoding, and pandas for handling data. A sample transaction dataset is defined, where each list represents a transaction. A one-hot encoded DataFrame is created by using the