Closed DarioS closed 7 years ago
This is a misnomner. label
in modelLookup
is a label for the tuning parameter. For example:
> modelLookup("pls")
model parameter label forReg forClass probModel
1 pls ncomp #Components TRUE TRUE TRUE
For getModelInfo
, label
is for the model and $parameter$label
is the tuning parameter label:
> getModelInfo("pls", FALSE)[[1]]$parameter
parameter class label
1 ncomp numeric #Components
parameter being parameter also looks wrong.
It does but isn't. That is the convention when a model has no parameters.
> sum(vapply(getModelInfo(), function(x) any(x$parameter$label == "parameter"), logical(1)))
[1] 18
For example:
But, a more informative name than just "none" is retrieved by
getModelInfo
.parameter being parameter also looks wrong.