Description Usage Arguments Value See Also
View source: R/summary_mpTune.R
summarize a mpTune
result and print summary information
1 2 3 4 5 6 7 8 9 | ## S3 method for class 'mpTune'
summary(object, metric = object$performanceMetric,
maximize = sapply(metric, function(x) ifelse(x %in% c("RMSE", "MAE"),
FALSE, TRUE)), by = c("metric", "model"), ...)
## S3 method for class 'summarizedMpTune'
print(x, indent = rep(" ", 4), prefix = c("-",
"-", "+"), digits = 3, justify = c("left", "right", "center", "none"),
...)
|
object |
A 'mpTune' object or a 'summarizedMpTune' object |
metric |
A vector a metric for sumary. Default to metrics used in |
maximize |
A logical vector inddicating if metric values the larger the better |
by |
Which should be used for the first level of the returned list. See the following for detail |
... |
Just for compatibility |
x |
A 'mpTune' object or a 'summarizedMpTune' object |
indent |
A string used to indent he next level of a list |
prefix |
A vector of characters put in front of each entry |
digits |
Number of effective digits to keep for double numeric value |
justify |
Either 'left' (default), 'right', 'center', 'none' for alignment of keys (list names) |
summary returns a 'summarizedMpTune' object, which is a list of two levels, either performance metrics -> models (by = 'metric') or models -> performance metrics, where models are always ranked by the performance
See mpTune
for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.