rtModLogger-class | R Documentation |
rtemis model logger
rtemis model logger
R6 class to save trained models' parameters and performance. Keep your experiment results tidy in one place, with an option to write out to a multi-sheet Excel file.
mods
List of trained models
new()
Initialize rtModLogger
object
rtModLogger$new(mods = list())
mods
List of trained models
print()
Print method for rtModLogger
object
rtModLogger$print()
add()
Add model to logger
rtModLogger$add(mod, verbose = TRUE)
mod
Model to add
verbose
Logical: If TRUE, print messages to console
summarize()
Summary method for rtModLogger
rtModLogger$summarize( class.metric = "Balanced Accuracy", reg.metric = "Rsq", surv.metric = "Coherence", decimal.places = 3, print.metric = FALSE )
class.metric
Character: Metric to use for Classification models
reg.metric
Character: Metric to use for Regression models
surv.metric
Character: Metric to use for Survival models
decimal.places
Integer: Number of decimal places to display
print.metric
Logical: If TRUE, print metric name
summary()
Summary method for rtModLogger
rtModLogger$summary( class.metric = "Balanced Accuracy", reg.metric = "Rsq", surv.metric = "Coherence" )
class.metric
Character: Metric to use for Classification models
reg.metric
Character: Metric to use for Regression models
surv.metric
Character: Metric to use for Survival models
tabulate()
Tabulate models' parameters and performance
rtModLogger$tabulate(filename = NULL)
filename
Character: Path to file to save parameters and performance - will be saved as .xlsx file with multiple sheets
plot()
Plot method for rtModLogger
rtModLogger$plot( names = NULL, col = unlist(rtpalette(rtPalette)), mar = NULL, ... )
names
Character: Model names
col
Colors to use
mar
Float, vector: plot margins
...
Additional arguments to pass to plotting function
clone()
The objects of this class are cloneable with this method.
rtModLogger$clone(deep = FALSE)
deep
Whether to make a deep clone.
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.