对数据 x_train进行标准化 from sklearn.preprocessing import StandardScaler std = StandardScaler() x_std = std.fit_transform(x_train)