使用第 46 页的包小插图 ( pdftrainControl()
)中记录的自定义方法语法,我在插入符号中收到以下错误。有谁知道此文档是否已过期或不正确?似乎与未使用“自定义”参数的插入符号文档页面不一致。
> 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))