Python Machine Learning Code Repository
seat.massey.ac.nz
seat.massey.ac.nz
Taking into account that it's meant to go with the book, it's even decently commented. In quite a few of them, though, it'd be hard to puzzle out reasons for doing things without already knowing the logic.