audioscrobbler: Audioscrobbler User Data

Description Details Source Examples

Description

The Audioscrobbler data set contains profiles for around 20,000 real people. The dataset lists the artists each person listens to, and a counter indicating how many times each user played each artist.

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Details

This data set is intended to be used with association rules algorithms like apriori and eclat. It contains records on 20,000 users of the Audioscrobbler plugin, which tracked what music users listened to. This data set consists of records for 20,000 unique users. Each record contains a userid and an artist name, and indicates that the user listened to the artist at least once.

This data is made available under the following Creative Commons license: http://creativecommons.org/licenses/by-nc-sa/1.0/

Audioscrobbler is now part of last.fm.

Source

The data is now available from: http://www-etud.iro.umontreal.ca/~bergstrj/audioscrobbler_data.html

Examples

1
2
3
4
5
6
7
library(arules)
data(audioscrobbler)
audioscrobbler.apriori <- apriori(
     data=audioscrobbler,
     parameter=new("APparameter",support=0.0645)
   )
inspect(audioscrobbler.apriori)

Example output

Loading required package: Matrix

Attaching package: 'arules'

The following objects are masked from 'package:base':

    abbreviate, write

Apriori

Parameter specification:
 confidence minval smax arem  aval originalSupport maxtime support minlen
        0.8    0.1    1 none FALSE            TRUE       5  0.0645      1
 maxlen target   ext
     10  rules FALSE

Algorithmic control:
 filter tree heap memopt load sort verbose
    0.1 TRUE TRUE  FALSE TRUE    2    TRUE

Absolute minimum support count: 1290 

set item appearances ...[0 item(s)] done [0.00s].
set transactions ...[429033 item(s), 20001 transaction(s)] done [1.13s].
sorting and recoding items ... [287 item(s)] done [0.06s].
creating transaction tree ... done [0.01s].
checking subsets of size 1 2 3 4 done [0.09s].
writing ... [10 rule(s)] done [0.00s].
creating S4 object  ... done [0.07s].
     lhs                                   rhs         support    confidence
[1]  {Jimmy Eat World,blink-182}        => {Green Day} 0.06524674 0.8085502 
[2]  {The Strokes,Coldplay}             => {Radiohead} 0.06619669 0.8019382 
[3]  {Interpol,Beck}                    => {Radiohead} 0.06474676 0.8180670 
[4]  {Interpol,Coldplay}                => {Radiohead} 0.06774661 0.8008274 
[5]  {The Beatles,Interpol}             => {Radiohead} 0.06719664 0.8047904 
[6]  {The Offspring,blink-182}          => {Green Day} 0.06664667 0.8399496 
[7]  {Foo Fighters,blink-182}           => {Green Day} 0.06669667 0.8169014 
[8]  {Pixies,Beck}                      => {Radiohead} 0.06569672 0.8066298 
[9]  {The Smashing Pumpkins,Beck}       => {Radiohead} 0.06869657 0.8287093 
[10] {The Smashing Pumpkins,Pink Floyd} => {Radiohead} 0.06514674 0.8018462 
     lift     count
[1]  2.780095 1305 
[2]  2.616996 1324 
[3]  2.669629 1295 
[4]  2.613371 1355 
[5]  2.626303 1344 
[6]  2.888058 1333 
[7]  2.808810 1334 
[8]  2.632306 1314 
[9]  2.704359 1374 
[10] 2.616695 1303 
Warning message:
system call failed: Cannot allocate memory 

nutshell.audioscrobbler documentation built on May 1, 2019, 6:50 p.m.