This class manages the results achieved during training stage (such as optimized hyperparameters, model information, utilized metrics).
new()
Function used to initialize the object arguments during runtime.
TrainOutput$new(models, class.values, positive.class)
models
A list containing the best M.L. model for each cluster.
class.values
A character vector containing the values of the target class.
positive.class
A character with the value of the positive class.
getModels()
The function is used to obtain the best M.L. model of each cluster.
TrainOutput$getModels(metric)
metric
A character vector which specifies the metric(s) used for configuring M.L. hyperparameters.
A list is returned of class train.
getPerformance()
The function returns the performance value of M.L. models during training stage.
TrainOutput$getPerformance(metrics = NULL)
metrics
A character vector which specifies the metric(s) used to train the M.L. models.
A character vector containing the metrics used for configuring M.L. hyperparameters.
savePerformance()
The function is used to save into CSV file the performance achieved by the M.L. models during training stage.
TrainOutput$savePerformance(dir.path, metrics = NULL)
dir.path
The location to store the into a CSV file the performance of the trained M.L.
metrics
An optional parameter specifying the metric(s) used to train the M.L. models. If not defined, all the metrics used in train stage will be saved.
plot()
The function is responsible for creating a plot to visualize the performance achieved by the best M.L. model on each cluster.
TrainOutput$plot(dir.path, metrics = NULL)
dir.path
The location to store the exported plot will be saved.
metrics
An optional parameter specifying the metric(s) used to train the M.L. models. If not defined, all the metrics used in train stage will be plotted.
getMetrics()
The function returns all metrics used for configuring M.L. hyperparameters during train stage.
TrainOutput$getMetrics()
A character value.
getClassValues()
The function is used to get the values of the target class.
TrainOutput$getClassValues()
A character containing the values of the target class.
getPositiveClass()
The function returns the value of the positive class.
TrainOutput$getPositiveClass()
A character vector of size 1.
getSize()
The function is used to get the number of the trained M.L. models. Each cluster contains the best M.L. model.
TrainOutput$getSize()
clone()
The objects of this class are cloneable with this method.
TrainOutput$clone(deep = FALSE)
deep
Whether to make a deep clone.
D2MCS