For getting started I really liked Toby Segarin's Programming Collective Intelligence. It was my introduction to this area before I went on to produce After the Deadline.
I read that one, I liked the fact that he builds up each example from first principles. It's hard to find explanations that bridge theory and practice.