基于Apriori算法等的序列规则挖掘

2024-05-18 17:51:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Apriori算法和FPA执行顺序规则挖掘,我在excel中有如下所示的数据集,我将数据加载到pandas dataframe中,我使用的是如下read_excel命令,如下所示。在

    Station1    Station2    Station3    Repetition
0   Singapore Changi Airport (SIN)  Terminal 1  Universal Studios Singapore 52
1   Gardens by the Bay  Flower Dome Cloud Forest    52
2   Marina Bay Sands    Singapore Changi Airport (SIN)  Gardens by the Bay  52
3   Singapore   Singapore Changi Airport (SIN)  Gardens by the Bay  51
4   Universal Studios Singapore Singapore Changi Airport (SIN)  Marina Bay Sands    51

我应该如何执行模式挖掘。在

对于apriori和关联规则,我使用MLxtend,但是在稀疏df上,不包括重复。在

我对Apriori,GSM,SPAM和SPADE感兴趣,我怎样才能做到呢?在

TIA!!!在


Tags: the数据by规则sinexceluniversalbay

热门问题