how to impose syntactic constraints in apriori in weka

﹥>﹥吖頭↗ 提交于 2019-12-24 00:39:40

问题


there is a way to insert syntactic constraints in weka algorithm priori?

For example, I be interested only in rules that have a specific item I(x) appearing in the consequent, or rules that have a specific item I(y) appearing in the antecedent, or combinations of the above constraints.


回答1:


You can mine rules with a specific item "I" (what I(x) means in your notation?) appearing in the consequent. For this you need to set the corresponding column "I" as "class variable", that is to make it the last column (with Weka API). Then set "car" to True in the "Apriori" parameters (see the picture below) and, possibly, don't forget to lower the "minMetric" so that you have nonzero number of rules



来源:https://stackoverflow.com/questions/32759339/how-to-impose-syntactic-constraints-in-apriori-in-weka

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!