I mean product offerings on Amazon or, more specifically, a similar recommendation from the group at Last.fm.
Given that you can maintain the full listener / purchase behavior of your users (WHO listened to WHAT how OFTEN?), How do you calculate which groups are similar to any given ranges, and how many?
I found some sites on Wikipedia ( Teaching association rules , Affinity analysis ), but I would like to get some information from the point of view of a programmer and, preferably, pseudo-code or Python code for it.
Given that I have
dic = { "Alice" : { "AC/DC" : 2, "The Raconteurs" : 3, "Mogwai" : 1 }, "Bob" : { "The XX" : 4, "Lady Gaga" : 3, "Mogwai" : 1, "The Raconteurs" : 1 } "Charlie" : { "AC/DC" : 7, "Lady Gaga" : 7 } }
where numbers are indicators of reproduction, how would I go through this to find the similarity of the bands?
source share