/// <summary> /// Gets the data from the file system. /// </summary> /// <returns></returns> public override MnistImageBatch GetData() { int[] label = LabelReader.ReadLabels(BatchSize); double[][] pixels = PixelReader.ReadPixels(BatchSize, ImageSizeInPixels); pixels = NormalizePixels(pixels); var result = new MnistImageBatch(label, pixels); return(result); }