Does anybody knows- where this warning comes from?
The `...` are not used in this function but one or more objects were passed: 'preprocessor'
I have no example code yet. I just gather ideas/informations.
Does anybody knows- where this warning comes from?
The `...` are not used in this function but one or more objects were passed: 'preprocessor'
I have no example code yet. I just gather ideas/informations.
Comes from passing undefined arguments to a function that doesn't support it via the elipsis argument (...
).
The spam bot hides all my messages with external links.
So there is no conversation possible- including useful links.
Could it be...
tune_grid()
res <- do.call(tune_grid,list(
modelObj
,preprocessor = preProc
,resamples = folds
,param_info = dials::parameters(modelObj)
,grid = tuningGrid
,metrics = metric
,control = control_grid(save_pred = TRUE)
))
...wondering why elipsis argument is in the middle of the function.
Try this
res <- do.call(tune_grid,list(
object = modelObj # needed a name!
,preprocessor = preProc
,resamples = folds
,param_info = dials::parameters(modelObj)
,grid = tuningGrid
,metrics = metric
,control = control_grid(save_pred = TRUE)
))
[/quote]
I get the same warning...
res <- do.call(tune_grid,list(
object = modelObj # needed a name!
,preprocessor = preProc
,resamples = folds
,param_info = NULL
#,param_info = dials::parameters(modelObj)
,grid = tuningGrid
,metrics = NULL
,control = control_grid(save_pred = TRUE)
))
Warning message:
The ...
are not used in this function but one or more objects were passed: 'preprocessor'
When I look at the documentation, it seems preprocessor
is only an argument if object
is a parsnip object. Is your modelObj
a parsnip object or a workflow object? If it is the latter, then there should be no preprocessor
argument.
__ O h m y g o d !__ {thx}
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.