Closed fuhrmanator closed 5 years ago
I think this is not a bug, finally. I realize that larger numbers of observations affects the support
numbers. By decreasing that on the parameter list (supp=0.001
), I was able to get some rules in my own test case. Sorry for the noise.
Perhaps there should be a warning when there are no rules?
No worries. I thought about a warning before, but 0 rules is a legitimate output. Maybe I will add something to the man page.
In some of my Apriori runs, I get 0 rules. The trouble seems to be with the number of observations, at least how I'm using it.
Here's my R script to reproduce the problem.
smallRules
are calculated properly. However,largeRules
remain 0 wheneverlargeObsCount
is above 250. I'm actually not sure where the sweet spot is (200 is OK). I was narrowing it down, but unfortunately random.org won't let me run any more tests today. I had reported this on StackOverflow in a comment, but in fact I wasn't realizing that there were 0 rules.