currExample[j] = MathUtils.normalize(currExample[j], 0, 255);
examples[i - 1] = currExample;
outcomeMatrix[i - 1] = ArrayUtils.toOutcomeArray(man.readLabel(), 10);
}
Matrix training = new DenseMatrix( batchSize, imageExample.length ); //Matrix(examples);
training.assign(examples);
return new Pair<Matrix,Matrix>(training,MatrixUtils.toMatrix(outcomeMatrix));
}