def LoadData(): d10 = MnistDataReader(train_image_file, train_label_file, test_image_file, test_label_file) d10.ReadData() d10.Normalize() d6 = Mnist6DataReader(train_image_file_6, train_label_file_6, test_image_file_6, test_label_file_6) d6.ReadData() d6.Normalize() d16 = Mnist16DataReader(d10.X, d10.Y, d6.X, d6.Y, d10.XTestSet, d10.YTestSet, d6.XTestSet, d6.YTestSet) d16.ReadData() d16.Shuffle() return d16
def LoadData(num_output): mdr = MnistDataReader(train_image_file, train_label_file, test_image_file, test_label_file) mdr.ReadFile() mdr.NormalizeXData() return mdr