fmt='%i', delimiter=',')
一旦将数据集保存为 CSV 文件, 我们也可以用 NumPy 的 genfromtxt 函数重新将它们加载入程序中:
X_train = np.genfromtxt...('train_img.csv',
dtype=int, delimiter=',')
y_train = np.genfromtxt('train_labels.csv...',
dtype=int, delimiter=',')
X_test = np.genfromtxt('test_img.csv',...dtype=int, delimiter=',')
y_test = np.genfromtxt('test_labels.csv',
dtype=int,