tungwaiyip.info

home

about me

links

Blog

< December 2012 >
SuMoTuWeThFrSa
       1
2 3 4 5 6 7 8
9101112131415
16171819202122
23242526272829
3031     

past articles »

Click for San Francisco, California Forecast

San Francisco, USA

 

Collaborative Filtering in 9 Lines of Code

I have purchased Toby Segaran's book Programming Collective Intelligence when it first come out in 2007. Yet I still have not been able to finished it after all these years. Now I am giving myself another push. While I was revisiting the book I tried to implement its technique using Pandas. I am quite happy to be able to do it in just 9 lines of code. So I have put together a little article to show collaborative filtering using Pandas. This is also a great exercise for me using to make a very nice document using iPython notebook for the first time.

The main reason for not having completed the book is not because it is not interesting or not useful. It is very much an excellent book to introduce readers to the topic of collective intelligence. The problem is I strive to work through all the coding examples and not just to read the text. Many times I have feel the examples given, designed for average programmer without additional experience, often has low abstraction level. I tried to improve them, including building some tools on myself. This unfortunately doomed me because I never have the time to build the tools or even just to work through the exercises in sufficient detail. This time around I feel that I have gained a lot of experience and have access to many tools like Pandas. I hope this will be an enjoyable exercise.

2012.12.17 [] - comments

 

 

blog comments powered by Disqus

past articles »

 

BBC News

 

Trump and Putin held another, undisclosed meeting at G20 (19 Jul 2017)

 

Justine Damond: Australian PM calls shooting 'inexplicable' (19 Jul 2017)

 

Let Obamacare fail - Trump's new plan (18 Jul 2017)

 

First child to undergo double hand transplant can now do this (18 Jul 2017)

 

Despacito breaks global streaming record (19 Jul 2017)

 

Doris Payne, 86-year-old jewel thief, arrested again (19 Jul 2017)

 

How did dogs become our best friends? New evidence (18 Jul 2017)

 

Briton and Italian die in beach rescue near Brindisi (18 Jul 2017)

 

Is WhatsApp being censored in China? (19 Jul 2017)

 

Antonio Conte: Chelsea manager signs improved two-year deal at champions (18 Jul 2017)

more »

 

SF Gate

 

Bay Area News (7 Jan 2012)

 

City Insider (11 Feb 2012)

 

Crime Scene (13 Feb 2012)

 

C.W Newius Column (10 Jan 2012)

 

C.W. Nevius Blog (11 Feb 2012)

 

Education News (10 Jan 2012)

 

KALW (11 Feb 2012)

 

Matier and Ross Blog (11 Feb 2012)

 

Cap-and-trade survives razor-thin votes in California Legislature (18 Jul 2017)

 

Ann Coulter battles Delta; Gillette goofs; Titleist sues (17 Jul 2017)

 

Business News Roundup, July 18 (17 Jul 2017)

 

Kitchen gadget maker Juicero feels squeeze, cuts 25% of staff (17 Jul 2017)

 

Judge limits Google pay, job data in Labor Department audit (17 Jul 2017)

 

Penguin pulls book by Doerr, tech CEO amid Duggan harassment suit (17 Jul 2017)

more »

 


Site feed Updated: 2017-Jul-19 00:00