def MDLSTM_train(params): func,args= dill.loads(params) X_arr,model,dict_conv_param,grd_truth_seq,reg= args[0] return func(X_arr,model,dict_conv_param,grd_truth_seq,reg)