如下所示:
from sklearn.datasets import load_iris
iris = load_iris()
print iris.data.shape
from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(iris.data, iris.target, test_size = 0.25, random_state = 33)
from sklearn.preprocessing import StandardScal
1