上传者: 38724363
|
上传时间: 2021-12-14 15:16:39
|
文件大小: 28KB
|
文件类型: -
如下所示:
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