I have been trying to run the following code which is a direct copy from the book "Machine Learning with Python Cookbook" but it errors. Can anyone see what is wrong?<