jckhmmr
2015-Jul-22 19:38 UTC
[R] Same results in arules after changing support and confidence
Hello, everyone! I'm new to R, so I'm sorry in advance if it's something obvious, but I still can't figure it out. I've started experimenting with apriori and everything was working fine, i.e. I changed support and confidence and results were different depending on combination. But on the next after running the same code and same dataset I'm getting 0 rules no matter which combination I'm using. My dataset looks like this (foodmarket data): Trans_Id,Product 3694728,Washington Berry Juice 3779788,Washington Berry Juice 4146666,Washington Berry Juice 4405313,Washington Berry Juice etc. My code is: library('arules') transactions <- read.transactions(file="transactions.csv",format="single",sep=",",cols=c(1,2),rm.duplicates="false") basket_rules <- apriori(transactions, parameter = list(sup = 0.05, conf 0.01, target="rules",minlen=2)) With following results: http://postimg.org/image/8qw4e1hw7/ And another one with different parameters but same result: http://postimg.org/image/b9k7xfq91/ So, I have no idea how is that possible. Any input will be appreciated. Thank you. -- View this message in context: http://r.789695.n4.nabble.com/Same-results-in-arules-after-changing-support-and-confidence-tp4710218.html Sent from the R help mailing list archive at Nabble.com.