我使用第46页的程序包插图(pdf)中记录的自定义方法语法在插入符trainControl()
中收到以下错误。是否有人知道此文档是否过期或不正确?它似乎与不使用“自定义”参数的插入符documentation page不一致。
> fitControl <- trainControl(custom=list(parameters=lpgrnn$grid, model=lpgrnn$fit,
prediction=lpgrnn$predict, probability=NULL,
sort=lpgrnn$sort, method="cv"),
number=10)
Error in trainControl(custom = list(parameters = lpgrnn$grid, model = lpgrnn$fit, :
unused argument (custom = list(parameters = lpgrnn$grid, model = lpgrnn$fit,
prediction = lpgrnn$predict, probability = NULL, sort = lpgrnn$sort, method = "cv",
number = 10))
答案 0 :(得分:0)
引用的pdf已过期。插入符号网站是文档的规范来源。