24th
Sep 2018
kiran
Sep 24 2018 05:33
hi can i calculate transaction of single column dataset
T ID Items
3 {Milk, Diapers, Beer, Cola}
this is my dataset
Eric Leung
@erictleung
Sep 24 2018 07:48
@KiranGkiran11_twitter welcome! In the future, it would help if you gave more context about your problem. Luckily, I was able to figure out that "transactions" in this case was in the context of association analysis. The beginning of this article describes your example.
Flavio H Freitas
@flaviohenriquecbc
Sep 24 2018 08:25
Hello everybody! I just wrote an article about Machine Learning. Let me know what you think about it :wink:
https://medium.freecodecamp.org/how-to-predict-likes-and-shares-based-on-your-articles-title-using-machine-learning-47f98f0612ea
Maka Sitaram
@satyaram413
Sep 24 2018 09:13
Hello all, Can you guys mention few resources for Machine Learning, Please help me learn from the basics. I also want to learn the Mathematics involved.
kiran
Sep 24 2018 10:12
thanks @erictleung
kiran
Sep 24 2018 13:28
Error in asMethod(object) :
column(s) 1 not logical or a factor. Discretize the columns first.
when i apply appriori function error show like this
Josh Goldberg
@GoldbergData
Sep 24 2018 13:36
Association rules only takes discrete / categorically variables. Transform your data. @KiranGkiran11_twitter
kiran
Sep 24 2018 13:46
but using this code i get result, but when i give dataset locally error occur

library(arules)
library(arulesViz)
library(datasets)

data(Groceries)
print(Groceries)

rules <- apriori(Groceries, parameter = list(supp = 0.001, conf = 0.8))

# options(digits=2)

inspect(rules[1:5])

lhs rhs support confidence lift count
[1] {liquor,red/blush wine} => {bottled beer} 0.001931876 0.9047619 11.235269 19
[2] {curd,cereals} => {whole milk} 0.001016777 0.9090909 3.557863 10
[3] {yogurt,cereals} => {whole milk} 0.001728521 0.8095238 3.168192 17
[4] {butter,jam} => {whole milk} 0.001016777 0.8333333 3.261374 10
[5] {soups,bottled beer} => {whole milk} 0.001118454 0.9166667 3.587512 11
@GoldbergData
Josh Goldberg
@GoldbergData
Sep 24 2018 13:53
kiran
$T.ID <int> 1, 2, 3, 4, 5$ Items <fct> {Bread,Milk}, {Bread, Diapers, Beer, Eggs}, {Milk, Diapers, Beer, Cola}, {Bread, Milk, Diapers, Beer}, {Bread, Milk, Diapers, Cola}