*/
public List<Pair<Matrix,Matrix>> getMnistExampleBatches(int batchSize,int numBatches) throws IOException {
File ensureExists = new File("/tmp/MNIST");
List<Pair<Matrix,Matrix>> ret = new ArrayList<Pair<Matrix, Matrix>>();
if(!ensureExists.exists())
new MnistFetcher().downloadAndUntar();
MnistManager man = new MnistManager("/tmp/MNIST/" + MnistFetcher.trainingFilesFilename_unzipped,"/tmp/MNIST/" + MnistFetcher.trainingFileLabelsFilename_unzipped);
int[][] image = man.readImage();
int[] imageExample = ArrayUtils.flatten(image);