Skip to content

Commit

Permalink
Actualizar reglas de asociación con visualización
Browse files Browse the repository at this point in the history
  • Loading branch information
joanby committed May 23, 2020
1 parent dc57938 commit 4ec00e4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# Preprocesado de Datos
#install.packages("arules")
library(arules)
library(arules)
library(arulesViz)

dataset = read.csv("Market_Basket_Optimisation.csv", header = FALSE)
dataset = read.transactions("Market_Basket_Optimisation.csv",
sep = ",", rm.duplicates = TRUE)
Expand All @@ -16,5 +18,7 @@ rules = apriori(data = dataset,
# Visualización de los resultados
inspect(sort(rules, by = 'lift')[1:10])


plot(rules, method = "graph", engine = "htmlwidget")



0 comments on commit 4ec00e4

Please sign in to comment.