Arules returning empty LHS

后端 未结 2 1882
一生所求
一生所求 2021-02-09 19:38

I have a dataset which looks like this:

\"user.get\",\"search_restaurants\",\"cuisines.get\"
\"user.get\",\"search_restaurants\",\"user.get\",\"search_restaurant         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-09 19:53

    From help("apriori"):

    The default value in APparameter for minlen is 1. This means that rules with only one item (i.e., an empty antecedent/LHS) like

    {} => {beer}
    

    will be created. These rules mean that no matter what other items are involved the item in the RHS will appear with the probability given by the rule's confidence (which equals the support). If you want to avoid these rules then use the argument parameter=list(minlen=2).

提交回复
热议问题