Modify genTrainMetrics to use HDF5