技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
frequent-patterns【数据与研究】Mine frequent itemsets and association rules from transaction data with mlxtend frequent_patterns.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task involves market-basket or transaction mining with mlxtend.frequent_patterns: frequent itemsets, maximal itemsets, association rules, support/confidence/lift-style metrics, null-aware FP mining, sparse one-hot data, or threshold diagnosis.
TransactionEncoder only as the upstream route from list-of-lists transactions into a one-hot pandas DataFrame. For broader preprocessing and transformer behavior, route to ../feature-workflows/SKILL.md.| Goal | Primary API | Notes |
|---|---|---|
| All frequent itemsets, classic candidate search | apriori | Supports low_memory and n_jobs; no nullable-NaN mode. |
| All frequent itemsets, usually faster on sparse/large baskets | fpgrowth | FP-tree based; supports null_values=True. |
| Only maximal frequent itemsets | fpmax | Compact output; not a full subset lattice for normal rule metrics. |
| All frequent itemsets via H-Mine | hmine | Alternative frequent-itemset miner; no nullable-NaN mode. |
| Rules from complete frequent itemsets | association_rules | Requires support and itemsets; use full itemset output unless support_only=True. |
| Raw transactions to one-hot DataFrame | TransactionEncoder | Create pd.DataFrame(te.fit_transform(transactions), columns=te.columns_). |