modifying trainparams