Rapidminer中的W-apriori

3
我需要使用apriori算法在Rapidminer中创建关联规则,但似乎无法使其正常工作。我正在使用5.3.1版的weka扩展程序。
我已经使用内置的FP-Growth和Create Associations运算符创建了关联规则,并且它按预期工作。这是整个过程的样子:
因为我的所有属性已经是二元类型,所以我可以直接使用FP-Growth。但是如果我对apriori使用相同的方法(置信度=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)
1个回答

1
当您尝试在RapidMiner中运行算法时,您正在处理的数据集不能包含数字属性。解决方案如下:
  • Add this operator to your process. After you load the data:

    Data Transformation > Type Conversion > Numerical to Polynomial

  • On the operator, select

    attribute type filter = single
    
    name of your attribute
    
这是一个关于编程的图片示例,内容如下:

以下是我所说的图片示例:


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接