Issue with Apriori Function in R -


i new data mining. i've got assignment print association rules against confidence using apriori function (package : arules) in r. problem prints 1 item on rhs. below program used :

a_list <- list( c("i1","i2","i5"), c("i2","i4"), c("i2","i3"), c("i1","i2","i4"), c("i1","i3"), c("i2","i3"), c("i1","i3"), c("i1","i2","i3","i5"), c("i1","i2","i3") ) names(a_list) <- paste("t",c(1:9), "00", sep = "") table5_1 <- as(a_list, "transactions") rules <- apriori(table5_1, parameter = list(supp = 0.21, conf = 0.7, target = "rules")) inspect(rules) 

output :

     lhs        rhs  support   confidence lift     count  [1] {}      => {i2} 0.7777778 0.7777778  1.000000 7      [2] {i4}    => {i2} 0.2222222 1.0000000  1.285714 2      [3] {i5}    => {i1} 0.2222222 1.0000000  1.500000 2      [4] {i5}    => {i2} 0.2222222 1.0000000  1.285714 2      [5] {i1,i5} => {i2} 0.2222222 1.0000000  1.285714 2      [6] {i2,i5} => {i1} 0.2222222 1.0000000  1.500000 2  

can tell method can association rules generated ? tried minlen , maxlen nothing worked me. in advance

citing documentation ?apriori:

apriori creates rules 1 item in rhs (consequent)!


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -