这是我的数据
X = X.reshape((-1, 784))
y = y.reshape((-1,1))
X_test = X_test.reshape((-1, 784))
y_test = y_test.reshape((-1,1))
X_train, X_val, y_train, y_val = train_test_split(X,
y,
test_size=0.1,
random_state=1)
我是否适合 或 在 ?XX_train.fit
scaler = MinMaxScaler()
scaler.fit(X_train)
或
scaler = MinMaxScaler()
scaler.fit(X)
转换将如下所示
X_train = scaler.transform(X_train)
X_val = scaler.transform(X_val)
y_test = scaler.transform(y_test)
皈依舞
Helenr
相关分类