n_patterns, seq_length, 1))
X = X / float(n_vocab)
y = np_utils.to_categoricaln_patterns, seq_length, 1))
X = X / float(n_vocab)
y = np_utils.to_categorical
我想在mnist数据集上训练一个keras神经网络。问题是,我的模型已经适应了一个或两个时代。为了解决这个问题,我想使用数据增强:#load mnist datasettr_images, test_images = preprocess(tr_images, test_images)
#function which returns the amount of train images, t