r - same results in arules after changing support and confidence -


yesterday i've started experimenting apriori , working fine, i.e. changed support , confidence , results different depending on combination.

but today after running same code , same dataset i'm getting 0 rules no matter combination i'm using.

my dataset looks (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://s2.postimg.org/b9k7xfq91/apriori_results1.jpg

and 1 different parameters same result:

so, have no idea how possible.

the first screen shot hard read. second 1 says there no items in transactions pass minimum support threshold , why not rules. maybe there problem reading transactions. did try summary(transactions) first?


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -