10. ^ëëçÅá~íáçå=iáëíë
imdb_actors_Bogaert%2C Frans,Bleeke Bet (1923),Bulldog Drummond (1922),Fate's Plaything (1920)
imdb_actors_Bogaerts%2C Sam,Ellektra (2004),Sicilia%2C La (1997),Steve + Sky (2004),Witte%2C De (1980)
imdb_actors_Bogan%2C Hugh,Men Cry Bullets (1997),Zoo Radio (1990)
imdb_actors_Bogard%2C Jerrod,Gatorman (2006),LovecraCked! The Movie (2006)
imdb_actors_Bogart%2C Humphrey,Across the Pacific (1942),Action in the North Atlantic (1943),African Queen%2C The (1951),...
imdb_costume-designers_Adamcova%2C Ruzena,Frona (1954),Igelfreundschaft%2C Die (1962),Jestrab kontra Hrdlicka (1953)
imdb_costume-designers_Adams%2C Annalisa,Billy Schulz (2006),Coffee Date (2006),Confessions of a Late Bloomer (2005)...
imdb_costume-designers_Adams%2C Katherine,Safe Side%2C The (2005),Trip%2C The (2003)
imdb_costume-designers_Adams-Galligan%2C Kimberly,House Divided%2C A (1998),Minotaur (1994),Minus Man%2C The (1999)
imdb_costume-designers_Adams-Santos%2C Stephanie,Last Good Man%2C The (2006),Model Man (2006)
imdb_directors_Spielberg%2C Steven (I),,Amistad (1997),Artificial Intelligence: AI (2001),Close Encounters of the Third Kind ...
imdb_directors_Spierig%2C Peter,Big Picture%2C The (2000),Daybreakers (2008),Undead (2003)
imdb_directors_Spires%2C Tony,Tears of a Clown (2005),Two Degrees (2001)
imdb_directors_Spiridakis%2C Tony,Last Word%2C The (1995),Noise (2004),Tinseltown (1997)
imdb_directors_Spiridellis%2C Evan,Ahnuld for Governor (2003),Big Box Mart (2005),Second Term (2005),This Land (2004)
mdb_keywords_dog-sled,Alaska: Spirit of the Wild (1997),Alaska's Silver Millions (1936),Arizona Dream (1993)...
imdb_keywords_newlywed,10 (1979),Above Suspicion (1943),Another Day%2C Another Man (1966)
imdb_keywords_surrealism,2001: A Space Odyssey (1968),300 (2006),8? (1963),8 X 8: A Chess Sonata in 8 Movements (1957)...
imdb_keywords_whimsical,10 (1979),10 Things I Hate About You (1999),13 Going on 30 (2004),Addams Family%2C The ,,,
`çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ
NM
12. grep -h -e quot;$seedquot; $dataDir/alf_*.txt
The seed is that from which we are
generating the recommendations, in this
case “Casablanca (1942)”
Hence this first step returns all the lists from all
the ALF files that contain “Casablanca (1942)”
(imagine huge list of lists, here)
`çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ
NO
13. ... | tr , 'n' | grep -v -e quot;$seedquot; -e quot;^imdb_quot;
• Pipe all those lists into tr, converting the commas into newlines,
putting each movie on its own line, then remove the list
headers and the seed itself
...
13th Letter%2C The (1951)
633 Squadron (1964)
Mr. Brown Comes Down the Hill (1965)
Fox%2C The (1967)
imdb_writers_Epstein%2C Julius J.
Letter from an Unknown Woman (1948)
Happy Deathday (1968)
In Our Time (1944)
Casablanca (1942)
In This Our Life (1942)
Intimate Stranger%2C The (1956)
Journey Out of Darkness (1967)
Letter%2C The (1940)
Mission to Moscow (1943)
Greengage Summer%2C The (1961)
... `çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ
NP
14. ... | sort | uniq -c
• Sort the list and qive to uniq -c to replace duplicate lines
with a single line plus the count of occurrences
...
1 Angel's Flight (1965)
1 Angel's Holiday (1937)
1 Angela's Ashes (1999)
1 Angels One Five (1952)
2 Angels Over Broadway (1940)
1 Angels Wash Their Faces%2C The (1939)
1 Angels of Death Island%2C The (2003)
14 Angels with Dirty Faces (1938)
3 Anger Management (2003)
3 Angst essen Seele auf (1974)
1 Angus (1995)
2 Anima (1998)
...
`çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ
NQ
15. ... | sort -k1,1nr | head
• Now sort again, numerically in reverse order, by the
counts. Then take the top of the list, and those are your
recommendations!
14 Angels with Dirty Faces (1938)
14 To Have and Have Not (1944)
13 Conspirators%2C The (1944)
13 Now%2C Voyager (1942)
12 Maltese Falcon%2C The (1941)
12 Passage to Marseille (1944)
12 Special Agent K-7 (1936)
11 Big Sleep%2C The (1946)
11 Dark Victory (1939)
11 Key Largo (1948)
`çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ
NR
28. péÉÉÇ
• fÑ=åÉÅÉëë~êó> recommender
• mêÉJÅçãéìí~íáçå
offline
lists
association
matrix top n
correlations
• fåÅêÉãÉåí~ä=ìéÇ~íÉë per item
`çéóêáÖÜí=OMMPJOMMVI=píê~åÇëI=fåÅ OU
32. pçÅá~ä=oÉÅçããÉåÇÉê=^mf
Item visited
Recommended item visited
Item reviewed
Capturing behavior in a retail site Item added to shopping cart
Item added to favorites
Item added to wishlist
Item purchased
Content visited
Recommended content visited
Content reviewed
Capturing behavior in a content site Content searched
Content uploaded
Content downloaded
Get item recommendation
Get user recommendation
Getting recommendations Explain a recommendation
Session start
Session start/end Session end
Rate an item
Rating items Show item rating
Set user tags
Get user tags
Tagging users and items Set item tags
Get item tags
`lkcfabkqf^i=C=molmofbq^ov
PO
`çéóêáÖÜí=OMMPJOMMUI=píê~åÇëI=fåÅ
33. bñ~ãéäÉW=ÄÉÜ~îáçê=áå=êÉí~áä
‣ customerId
‣ itemId
Item visited Tracks an item that has been visited
‣ userId
by a user
‣ sessionId
/tracking/event_visited.sbs
‣ needResult
‣ customerId
‣ itemId
Recommended item ‣ userId
Tracks a recommended item that has
‣ reqId
visited been clicked
‣ sessionId
‣ needResult
/tracking/event_clickedrecommendation.sbs
‣ widgetId
‣ customerId
‣ itemId
Item reviewed Tracks an item reviewed or commented
‣ userId
by a user
‣ sessionId
/tracking/event_reviewed.sbs
‣ needResult
‣ customerId
Item added to ‣ itemId
Tracks an item that has been added to
‣ userId
shopping cart the shopping cart
‣ sessionId
‣ needResult
/tracking/event_addshoppingcart.sbs
`lkcfabkqf^i=C=molmofbq^ov
PP
`çéóêáÖÜí=OMMPJOMMUI=píê~åÇëI=fåÅ