use trainmse instead of validmse for generation if latter not available