These are chat archives for FreeCodeCamp/DataScience

24th
Sep 2018
kiran
@KiranGkiran11_twitter
Sep 24 2018 05:33 UTC
hi can i calculate transaction of single column dataset
T ID Items
1 {Bread,Milk}
2 {Bread, Diapers, Beer, Eggs}
3 {Milk, Diapers, Beer, Cola}
4 {Bread, Milk, Diapers, Beer}
5 {Bread, Milk, Diapers, Cola}
this is my dataset
please help me
Eric Leung
@erictleung
Sep 24 2018 07:48 UTC
@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 UTC
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 UTC
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
@KiranGkiran11_twitter
Sep 24 2018 10:12 UTC
thanks @erictleung
kiran
@KiranGkiran11_twitter
Sep 24 2018 13:28 UTC
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 UTC
Association rules only takes discrete / categorically variables. Transform your data. @KiranGkiran11_twitter
kiran
@KiranGkiran11_twitter
Sep 24 2018 13:46 UTC
but using this code i get result, but when i give dataset locally error occur

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

Load the data set

data(Groceries)
print(Groceries)

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

Show the top 5 rules, but only 2 digits

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 UTC
Check the types of your columns. Use glimpse(data). Then reread your error message
kiran
@KiranGkiran11_twitter
Sep 24 2018 14:14 UTC
Observations: 5
Variables: 2
$ 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}
@GoldbergData
kiran
@KiranGkiran11_twitter
Sep 24 2018 14:22 UTC
may i pm u @GoldbergData
Alice Jiang
@becausealice2
Sep 24 2018 20:04 UTC
The talks and slides for the Emotion AI Summit from earlier this month have finally been made accessible, for anyone who is curious.