问题描述
slurm_apply
包中的 rslurm
函数需要 params
参数作为数据框。如果我使用 npregbw
中的 np
定义内核回归函数:
reg_fun <- function(reg_formula,data) {
np_bw <- np::npregbw(as.formula(reg_formula),data = data)
ker_reg <- np::npreg(np_bw,ckertype="gaussian",ckerorder=2)
}
如何将 params
参数传递给 slurm_apply
?
sjob <- slurm_apply(reg_fun,params,jobname = 'kernal_reg',nodes = 2,cpus_per_node = 2,submit = FALSE)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)