Exporting trainingSet file