我是 ML 和 Python 的新手。 不确定我是否正确? 我的代码:
fashion_mnist = keras.datasets.fashion_mnist.load_data()
(x_train,y_train),(x_test,y_test)=keras.datasets.fashion_mnist.load_data()
# x train data from 0 to 2000 and x validation data from 2000 to end
x_train_subset,x_valid = fashion_mnist[:2000],fashion_mnist[2000:]
# ytrain data from 0 to 2000 and yvalidation data from 2000 to end
y_train_subset,y_valid= fashion_mnist[:2000],fashion_mnist[2000:]
# x test from 0 to 500
x_test = fashion_mnist[:500]
# ytest from 0 to 5000
y_test= fashion_mnist[500:]