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)modelsA list containing the best M.L. model for each cluster.
class.valuesA character vector containing the values of the target class.
positive.classA 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)metricA 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)metricsA 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.pathThe location to store the into a CSV file the performance of the trained M.L.
metricsAn 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.pathThe location to store the exported plot will be saved.
metricsAn 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)deepWhether to make a deep clone.
D2MCS