官方文档:http://scikit-learn.org/stable/modules/generated/sklearn.cross_validation.cross_val_score.html
X=data.loc[:,features] y=data.Survived dtc= DecisionTreeClassifier() scores = cross_val_score(dtc, X, y, cv=10, scoring='accuracy')
官方文档:http://scikit-learn.org/stable/modules/generated/sklearn.cross_validation.cross_val_score.html
X=data.loc[:,features] y=data.Survived dtc= DecisionTreeClassifier() scores = cross_val_score(dtc, X, y, cv=10, scoring='accuracy')