tweak readTrainingData to take in group label instead of module