3

我需要在 Rapidminer 中使用 apriori 算法创建关联规则,但我似乎无法使其工作。我正在使用 5.3.1 weka 扩展。

我已经使用内置的 FP-Growth 和 Create Associations 运算符创建了关联规则,并且它按预期工作。这个过程是这样的:

FP-增长

因为我所有的属性都已经是二项式,所以我可以直接使用 FP-Growth。但是如果我对先验使用相同的方法(置信度=0.1,支持度=0.1):

在此处输入图像描述

结果,我没有得到我想要的东西:

Minimum support: 0.1 (26 instances)
Minimum metric <confidence>: 0.1
Number of cycles performed: 18

(...)

Best rules found:
  1. A=FALSE 53 ==> E=FALSE 26    conf:(0.49)
  2. H=FALSE 74 ==> E=FALSE 30    conf:(0.41)
  3. E=FALSE 75 ==> H=FALSE 30    conf:(0.4)
  4. C=FALSE 68 ==> E=FALSE 27    conf:(0.4)
  5. D=FALSE 67 ==> H=FALSE 26    conf:(0.39)
  6. E=FALSE 75 ==> C=FALSE 27    conf:(0.36)
  7. H=FALSE 74 ==> D=FALSE 26    conf:(0.35)
  8. E=FALSE 75 ==> A=FALSE 26    conf:(0.35)
4

1 回答 1

1

当您尝试w - apriori在 RapidMiner 中运行算法时,您在其上进行处理的数据集不得包含数字属性。

解决方案如下:

  • 将此运算符添加到您的流程中。加载数据后:

    数据转换 > 类型转换 > 数值到多项式

  • 在运算符上,选择

    attribute type filter = single
    
    name of your attribute
    

这是我的意思的图片示例:

于 2015-11-06T18:37:44.910 回答