PacktPublishing/Artificial-Intelligence-with-Python

Chapter 3, Building a Decision Tree Classifier

ronedmeades opened this issue · 1 comments

Page 67
from sklearn import cross_validation

Get an import error, looks like it is deprecated.

It was moved to model_selection.

replace the line
from sklearn import cross_validation
with
from sklearn import model_selection as cross_validation