Error during running train file

i am creating this error

init() got an unexpected keyword argument 'reduction’

Could you post a small code snippet which yields this error?