Converts training data between different formats