From bd596388c27dc885485cffea0546d189de4967a4 Mon Sep 17 00:00:00 2001 From: Koen Derks Date: Tue, 23 Sep 2025 16:20:06 +0200 Subject: [PATCH 1/2] Size to linewidth --- R/commonMachineLearningRegression.R | 4 +- R/mlRegressionBoosting.R | 2 +- R/mlRegressionDecisionTree.R | 2 +- R/mlRegressionKnn.R | 2 +- R/mlRegressionNeuralNetwork.R | 2 +- .../mlclassificationboosting/data-split.svg | 30 +- .../relative-influence-plot-mac.svg | 78 +- .../data-split.svg | 30 +- .../decision-tree-plot.svg | 96 +- .../_snaps/mlclassificationknn/data-split.svg | 30 +- .../_snaps/mlclassificationlda/data-split.svg | 26 +- .../linear-discriminant-matrix-subplot-1.svg | 2 +- .../linear-discriminant-matrix-subplot-2.svg | 2 +- .../linear-discriminant-matrix-subplot-3.svg | 2 +- .../linear-discriminant-matrix-subplot-4.svg | 60 +- .../linear-discriminant-matrix-subplot-5.svg | 372 ++-- .../linear-discriminant-matrix-subplot-6.svg | 2 +- .../linear-discriminant-matrix-subplot-8.svg | 60 +- .../data-split-1.svg | 26 +- .../data-split-2.svg | 26 +- .../mlclassificationnaivebayes/data-split.svg | 26 +- .../data-split.svg | 30 +- .../mean-decrease-in-accuracy-mac.svg | 70 +- .../total-increase-in-node-purity-mac.svg | 66 +- .../_snaps/mlclassificationsvm/data-split.svg | 30 +- .../all-predictors.svg | 558 +++--- .../k-distance-plot.svg | 2 +- .../all-predictors.svg | 458 ++--- .../all-predictors.svg | 778 ++++----- .../mlclusteringhierarchical/dendogram.svg | 1490 ++++++++--------- .../mlclusteringkmeans/all-predictors-2.svg | 662 ++++---- .../mlclusteringkmeans/all-predictors-3.svg | 570 +++---- .../mlclusteringkmeans/all-predictors.svg | 566 +++---- .../mlclusteringmodelbased/all-predictors.svg | 358 ++-- .../all-predictors-mac.svg | 358 ++-- .../mlregressionboosting/data-split.svg | 30 +- .../relative-influence-plot.svg | 76 +- .../mlregressiondecisiontree/data-split.svg | 30 +- .../decision-tree-plot.svg | 266 +-- .../_snaps/mlregressionknn/data-split.svg | 30 +- .../_snaps/mlregressionlinear/data-split.svg | 26 +- .../mlregressionrandomforest/data-split.svg | 30 +- .../mean-decrease-in-accuracy-mac.svg | 80 +- .../total-increase-in-node-purity.svg | 64 +- .../mlregressionregularized/data-split.svg | 30 +- .../_snaps/mlregressionsvm/data-split.svg | 30 +- 46 files changed, 3784 insertions(+), 3784 deletions(-) diff --git a/R/commonMachineLearningRegression.R b/R/commonMachineLearningRegression.R index 661e48dd..630e01ef 100644 --- a/R/commonMachineLearningRegression.R +++ b/R/commonMachineLearningRegression.R @@ -612,7 +612,7 @@ nTest <- result[["ntest"]] plotData <- data.frame(y = c(nTrain, nTest), x = c("Train", "Test"), group = c(1, 1)) p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Train")))) + - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrain + nTest + ((nTrain + nTest) / 5))) + # adjust limits to include "Total" text ggplot2::coord_flip() + ggplot2::labs(x = NULL) + @@ -629,7 +629,7 @@ nTest <- result[["ntest"]] plotData <- data.frame(y = c(nTrain, nValid, nTest), x = c("Train", "Validation", "Test"), group = c(1, 1, 1)) p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Validation", "Train")))) + - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrain + nValid + nTest + ((nTrain + nValid + nTest) / 5))) + # adjust limits to include "Total" text ggplot2::coord_flip() + ggplot2::labs(x = NULL) + diff --git a/R/mlRegressionBoosting.R b/R/mlRegressionBoosting.R index 38e3b459..89db4024 100644 --- a/R/mlRegressionBoosting.R +++ b/R/mlRegressionBoosting.R @@ -261,7 +261,7 @@ mlRegressionBoosting <- function(jaspResults, dataset, options, ...) { mapping = ggplot2::aes(x = xstart, xend = xend, y = ystart, yend = yend), linetype = "dashed", col = "darkgrey" ) + jaspGraphs::geom_line(mapping = ggplot2::aes(linetype = type)) + - ggplot2::geom_smooth(method = "loess", formula = y ~ x, size = 1, colour = "darkred", se = FALSE) + + ggplot2::geom_smooth(method = "loess", formula = y ~ x, linewidth = 1, colour = "darkred", se = FALSE) + ggplot2::scale_x_continuous(name = gettext("Number of Trees"), labels = xLabels, breaks = xBreaks, limits = c(0, max(xBreaks))) + ggplot2::scale_y_continuous(name = ylab, labels = yLabels, breaks = yBreaks, limits = range(yBreaks)) + ggplot2::labs(linetype = NULL) + diff --git a/R/mlRegressionDecisionTree.R b/R/mlRegressionDecisionTree.R index 31d10b45..dfaf4bf9 100644 --- a/R/mlRegressionDecisionTree.R +++ b/R/mlRegressionDecisionTree.R @@ -318,7 +318,7 @@ mlRegressionDecisionTree <- function(jaspResults, dataset, options, state = NULL } } p <- p + ggparty::geom_edge() + - ggparty::geom_edge_label(fill = "white", col = "darkred") + + ggparty::geom_edge_label(fill = "white", col = "darkred", linewidth = 0) + ggparty::geom_node_splitvar(mapping = ggplot2::aes(size = max(3, nodesize) / 2, label = info), fill = "white", col = "black") + ggparty::geom_node_label(mapping = ggplot2::aes(label = info, size = max(3, nodesize) / 2), ids = "terminal", fill = cols, col = "black", alpha = alpha) + ggplot2::scale_x_continuous(name = NULL, limits = c(min(p$data$x) - abs(0.1 * min(p$data$x)), max(p$data$x) * 1.1)) + diff --git a/R/mlRegressionKnn.R b/R/mlRegressionKnn.R index 32828523..95111bcd 100644 --- a/R/mlRegressionKnn.R +++ b/R/mlRegressionKnn.R @@ -294,7 +294,7 @@ mlRegressionKnn <- function(jaspResults, dataset, options, state = NULL) { yBreaks <- jaspGraphs::getPrettyAxisBreaks(c(0, 1), min.n = 4) # 0.001 for Inf at x = 0 in 'inv' weights plotFunc <- function(x) func(x) / func(0.001) p <- ggplot2::ggplot() + - ggplot2::stat_function(fun = plotFunc, size = 1, xlim = c(0.001, 1)) + + ggplot2::stat_function(fun = plotFunc, linewidth = 1, xlim = c(0.001, 1)) + ggplot2::scale_x_continuous(name = gettext("Proportion of Max. Distance"), breaks = xBreaks, limits = c(0, 1)) + ggplot2::scale_y_continuous(name = gettext("Relative Weight"), breaks = yBreaks, limits = c(0, 1)) + jaspGraphs::geom_rangeframe() + diff --git a/R/mlRegressionNeuralNetwork.R b/R/mlRegressionNeuralNetwork.R index 906d9ddd..da99e3cb 100644 --- a/R/mlRegressionNeuralNetwork.R +++ b/R/mlRegressionNeuralNetwork.R @@ -510,7 +510,7 @@ mlRegressionNeuralNetwork <- function(jaspResults, dataset, options, ...) { xBreaks <- jaspGraphs::getPrettyAxisBreaks(c(-6, 6), min.n = 4) yBreaks <- jaspGraphs::getPrettyAxisBreaks(c(-1, 1), min.n = 4) p <- ggplot2::ggplot() + - ggplot2::stat_function(fun = ac, size = 1) + + ggplot2::stat_function(fun = ac, linewidth = 1) + ggplot2::scale_x_continuous(name = gettext("Input"), breaks = xBreaks, limits = c(-6, 6)) + ggplot2::scale_y_continuous(name = gettext("Output"), breaks = yBreaks, limits = c(-1, 1)) + jaspGraphs::geom_rangeframe() + diff --git a/tests/testthat/_snaps/mlclassificationboosting/data-split.svg b/tests/testthat/_snaps/mlclassificationboosting/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlclassificationboosting/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationboosting/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.svg b/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.svg index 12c16d6d..5a7b5051 100644 --- a/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.svg +++ b/tests/testthat/_snaps/mlclassificationboosting/relative-influence-plot-mac.svg @@ -21,30 +21,30 @@ - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + Proanthocyanins Nonflavanoids Alcalinity @@ -58,24 +58,24 @@ Flavanoids Color Proline - - - - - - - - - -0 -5 -10 -15 -20 -25 -30 -35 -Relative Influence -relative-influence-plot-mac + + + + + + + + + +0 +5 +10 +15 +20 +25 +30 +35 +Relative Influence +relative-influence-plot-mac diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.svg b/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.svg index 34e45820..b254084a 100644 --- a/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationdecisiontree/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 96 -Validation: 24 -Test: 30 -Total: 150 - + + + + + +Train: 96 +Validation: 24 +Test: 30 +Total: 150 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.svg b/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.svg index f861e97d..43ac1390 100644 --- a/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.svg +++ b/tests/testthat/_snaps/mlclassificationdecisiontree/decision-tree-plot.svg @@ -21,57 +21,57 @@ - - + + - - - - - - - -< - -0.741 - - - -0.741 - -< - 0.591 - - - 0.591 - -Petal.Length -n = 96 - -setosa -n = 30 - -Petal.Width -n = 66 - -versicolor -n = 32 - -virginica -n = 34 - -setosa -n = 30 - -versicolor -n = 32 - -virginica -n = 34 - + + + + + + + +< + -0.741 + + + -0.741 + +< + 0.591 + + + 0.591 + +Petal.Length +n = 96 + +setosa +n = 30 + +Petal.Width +n = 66 + +versicolor +n = 32 + +virginica +n = 34 + +setosa +n = 30 + +versicolor +n = 32 + +virginica +n = 34 + - - -decision-tree-plot + + +decision-tree-plot diff --git a/tests/testthat/_snaps/mlclassificationknn/data-split.svg b/tests/testthat/_snaps/mlclassificationknn/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlclassificationknn/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationknn/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationlda/data-split.svg b/tests/testthat/_snaps/mlclassificationlda/data-split.svg index f2e6e3d2..c71e60c8 100644 --- a/tests/testthat/_snaps/mlclassificationlda/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationlda/data-split.svg @@ -21,22 +21,22 @@ - - + + - - - - -Train: 143 -Test: 35 -Total: 178 - + + + + +Train: 143 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.svg index 0bbff4f8..8671359b 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-1.svg @@ -18,7 +18,7 @@ - + diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.svg index 84be6d37..0e26527a 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-2.svg @@ -18,7 +18,7 @@ - + diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.svg index 9d0d09f9..2f335974 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-3.svg @@ -18,7 +18,7 @@ - + diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.svg index 8c95c36c..5ef6e498 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-4.svg @@ -18,42 +18,42 @@ - + - - + + - - - - - - - - + + + + + + + + - - - - - - - - - - --6 --4 --2 -0 -2 -4 -6 -8 + + + + + + + + + + +-6 +-4 +-2 +0 +2 +4 +6 +8 Density -linear-discriminant-matrix-subplot-4 +linear-discriminant-matrix-subplot-4 diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.svg index 6188d7dc..4cbffa76 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-5.svg @@ -21,195 +21,195 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + Type @@ -222,6 +222,6 @@ 1 2 3 -linear-discriminant-matrix-subplot-5 +linear-discriminant-matrix-subplot-5 diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.svg index 7a305662..eb5317c1 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-6.svg @@ -18,7 +18,7 @@ - + diff --git a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.svg b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.svg index 0708323c..fb2ecf61 100644 --- a/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.svg +++ b/tests/testthat/_snaps/mlclassificationlda/linear-discriminant-matrix-subplot-8.svg @@ -18,42 +18,42 @@ - + - - + + - - - - - - - - + + + + + + + + - - - - - - - - - - --8 --6 --4 --2 -0 -2 -4 -6 + + + + + + + + + + +-8 +-6 +-4 +-2 +0 +2 +4 +6 Density -linear-discriminant-matrix-subplot-8 +linear-discriminant-matrix-subplot-8 diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.svg b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.svg index 2a5fca82..3af22552 100644 --- a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.svg +++ b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-1.svg @@ -21,22 +21,22 @@ - - + + - - - - -Train: 160 -Test: 40 -Total: 200 - + + + + +Train: 160 +Test: 40 +Total: 200 + - - -data-split-1 + + +data-split-1 diff --git a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.svg b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.svg index 35b13f56..a1148ca2 100644 --- a/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.svg +++ b/tests/testthat/_snaps/mlclassificationlogisticmultinomial/data-split-2.svg @@ -21,22 +21,22 @@ - - + + - - - - -Train: 120 -Test: 30 -Total: 150 - + + + + +Train: 120 +Test: 30 +Total: 150 + - - -data-split-2 + + +data-split-2 diff --git a/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.svg b/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.svg index 25ca32f6..fa95a138 100644 --- a/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationnaivebayes/data-split.svg @@ -21,22 +21,22 @@ - - + + - - - - -Train: 120 -Test: 30 -Total: 150 - + + + + +Train: 120 +Test: 30 +Total: 150 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/data-split.svg b/tests/testthat/_snaps/mlclassificationrandomforest/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlclassificationrandomforest/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationrandomforest/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.svg b/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.svg index 7a812014..a0d4849e 100644 --- a/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.svg +++ b/tests/testthat/_snaps/mlclassificationrandomforest/mean-decrease-in-accuracy-mac.svg @@ -21,30 +21,30 @@ - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + Malic Ash Nonflavanoids @@ -58,20 +58,20 @@ Color Flavanoids Proline - - - - - - - --0.05 -0.00 -0.05 -0.10 -0.15 -0.20 -Mean Decrease in Accuracy -mean-decrease-in-accuracy-mac + + + + + + + +-0.05 +0.00 +0.05 +0.10 +0.15 +0.20 +Mean Decrease in Accuracy +mean-decrease-in-accuracy-mac diff --git a/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.svg b/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.svg index 30fd2c9e..1604aac9 100644 --- a/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.svg +++ b/tests/testthat/_snaps/mlclassificationrandomforest/total-increase-in-node-purity-mac.svg @@ -21,30 +21,30 @@ - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + Nonflavanoids Proanthocyanins Malic @@ -58,18 +58,18 @@ Alcohol Proline Color - - - - - - --0.05 -0.00 -0.05 -0.10 -0.15 -Total Increase in Node Purity -total-increase-in-node-purity-mac + + + + + + +-0.05 +0.00 +0.05 +0.10 +0.15 +Total Increase in Node Purity +total-increase-in-node-purity-mac diff --git a/tests/testthat/_snaps/mlclassificationsvm/data-split.svg b/tests/testthat/_snaps/mlclassificationsvm/data-split.svg index 34e45820..b254084a 100644 --- a/tests/testthat/_snaps/mlclassificationsvm/data-split.svg +++ b/tests/testthat/_snaps/mlclassificationsvm/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 96 -Validation: 24 -Test: 30 -Total: 150 - + + + + + +Train: 96 +Validation: 24 +Test: 30 +Total: 150 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.svg b/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.svg index f6ab1cce..780d3aad 100644 --- a/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.svg +++ b/tests/testthat/_snaps/mlclusteringdensitybased/all-predictors.svg @@ -21,288 +21,288 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 - - - - - - + +-2 +-1 +0 +1 +2 + + + + + + Alcohol Malic Ash @@ -316,7 +316,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.svg b/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.svg index 1b1669d0..4f63f741 100644 --- a/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.svg +++ b/tests/testthat/_snaps/mlclusteringdensitybased/k-distance-plot.svg @@ -28,7 +28,7 @@ -Maximum curvature = 2.16 +Maximum curvature = 2.16 diff --git a/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.svg b/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.svg index 9b01b9a3..b5db25f8 100644 --- a/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.svg +++ b/tests/testthat/_snaps/mlclusteringfuzzycmeans/all-predictors.svg @@ -21,238 +21,238 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 -3 - - - - - - - + +-2 +-1 +0 +1 +2 +3 + + + + + + + Alcohol Malic Ash @@ -266,7 +266,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.svg b/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.svg index 03cf3d10..655679df 100644 --- a/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.svg +++ b/tests/testthat/_snaps/mlclusteringhierarchical/all-predictors.svg @@ -21,398 +21,398 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --3 --2 --1 -0 -1 -2 -3 -4 - - - - - - - - - + +-3 +-2 +-1 +0 +1 +2 +3 +4 + + + + + + + + + Alcohol Malic Ash @@ -426,7 +426,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.svg b/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.svg index 2672c143..f58d5be8 100644 --- a/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.svg +++ b/tests/testthat/_snaps/mlclusteringhierarchical/dendogram.svg @@ -1,745 +1,745 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -x -dendogram - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +x +dendogram + + diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.svg index 42dabf51..d9271b15 100644 --- a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.svg +++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-2.svg @@ -21,340 +21,340 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 - - - - - - + +-2 +-1 +0 +1 +2 + + + + + + Alcohol Malic Ash @@ -368,7 +368,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.svg index af257d84..0e7ec666 100644 --- a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.svg +++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors-3.svg @@ -21,294 +21,294 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2.0 --1.5 --1.0 --0.5 -0.0 -0.5 -1.0 -1.5 - - - - - - - - - + +-2.0 +-1.5 +-1.0 +-0.5 +0.0 +0.5 +1.0 +1.5 + + + + + + + + + Alcohol Malic Ash @@ -322,7 +322,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.svg b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.svg index ba8e59e0..1be56706 100644 --- a/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.svg +++ b/tests/testthat/_snaps/mlclusteringkmeans/all-predictors.svg @@ -21,292 +21,292 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 -3 -4 - - - - - - - - + +-2 +-1 +0 +1 +2 +3 +4 + + + + + + + + Alcohol Malic Ash @@ -320,7 +320,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.svg b/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.svg index 1c5ea91e..efb20b5d 100644 --- a/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.svg +++ b/tests/testthat/_snaps/mlclusteringmodelbased/all-predictors.svg @@ -21,188 +21,188 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --1.5 --1.0 --0.5 -0.0 -0.5 -1.0 -1.5 - - - - - - - - + +-1.5 +-1.0 +-0.5 +0.0 +0.5 +1.0 +1.5 + + + + + + + + Alcohol Malic Ash @@ -216,7 +216,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.svg b/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.svg index 46473102..3a0f7b47 100644 --- a/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.svg +++ b/tests/testthat/_snaps/mlclusteringrandomforest/all-predictors-mac.svg @@ -21,188 +21,188 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --1.5 --1.0 --0.5 -0.0 -0.5 -1.0 -1.5 - - - - - - - - + +-1.5 +-1.0 +-0.5 +0.0 +0.5 +1.0 +1.5 + + + + + + + + Alcohol Malic Ash @@ -216,7 +216,7 @@ Hue Dilution Proline -Cluster Mean +Cluster Mean Cluster diff --git a/tests/testthat/_snaps/mlregressionboosting/data-split.svg b/tests/testthat/_snaps/mlregressionboosting/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlregressionboosting/data-split.svg +++ b/tests/testthat/_snaps/mlregressionboosting/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.svg b/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.svg index 72912d2a..53e8d6e5 100644 --- a/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.svg +++ b/tests/testthat/_snaps/mlregressionboosting/relative-influence-plot.svg @@ -21,29 +21,29 @@ - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + Ash Dilution Magnesium @@ -56,24 +56,24 @@ Phenols Proline Color - - - - - - - - - -0 -10 -20 -30 -40 -50 -60 -70 -Relative Influence -relative-influence-plot + + + + + + + + + +0 +10 +20 +30 +40 +50 +60 +70 +Relative Influence +relative-influence-plot diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/data-split.svg b/tests/testthat/_snaps/mlregressiondecisiontree/data-split.svg index 34e45820..b254084a 100644 --- a/tests/testthat/_snaps/mlregressiondecisiontree/data-split.svg +++ b/tests/testthat/_snaps/mlregressiondecisiontree/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 96 -Validation: 24 -Test: 30 -Total: 150 - + + + + + +Train: 96 +Validation: 24 +Test: 30 +Total: 150 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.svg b/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.svg index 0ea8ef70..ca57122f 100644 --- a/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.svg +++ b/tests/testthat/_snaps/mlregressiondecisiontree/decision-tree-plot.svg @@ -21,142 +21,142 @@ - - + + - - - - - - - - - - - - - - - - - -< - 0.449 - -< - -0.203 - -< - 0.442 - - - 0.442 - - - -0.203 - -< - -0.705 - - - -0.705 - - - 0.449 - -< - 1.3 - -< - 1.12 - - - 0.46 - -< - 0.46 - - - 1.12 - - - 1.3 - -Petal.Length -n = 96 - -Petal.Length -n = 54 - -Sepal.Width -n = 33 - -4.73 -n = 17 - -5.19 -n = 16 - -Sepal.Width -n = 21 - -5.57 -n = 12 - -5.92 -n = 9 - -Petal.Length -n = 42 - -Petal.Width -n = 34 - -Petal.Width -n = 23 - -6.19 -n = 16 - -6.66 -n = 7 - -6.60 -n = 11 - -7.58 -n = 8 - -4.73 -n = 17 - -5.19 -n = 16 - -5.57 -n = 12 - -5.92 -n = 9 - -6.19 -n = 16 - -6.66 -n = 7 - -6.60 -n = 11 - -7.58 -n = 8 - + + + + + + + + + + + + + + + + + +< + 0.449 + +< + -0.203 + +< + 0.442 + + + 0.442 + + + -0.203 + +< + -0.705 + + + -0.705 + + + 0.449 + +< + 1.3 + +< + 1.12 + + + 0.46 + +< + 0.46 + + + 1.12 + + + 1.3 + +Petal.Length +n = 96 + +Petal.Length +n = 54 + +Sepal.Width +n = 33 + +4.73 +n = 17 + +5.19 +n = 16 + +Sepal.Width +n = 21 + +5.57 +n = 12 + +5.92 +n = 9 + +Petal.Length +n = 42 + +Petal.Width +n = 34 + +Petal.Width +n = 23 + +6.19 +n = 16 + +6.66 +n = 7 + +6.60 +n = 11 + +7.58 +n = 8 + +4.73 +n = 17 + +5.19 +n = 16 + +5.57 +n = 12 + +5.92 +n = 9 + +6.19 +n = 16 + +6.66 +n = 7 + +6.60 +n = 11 + +7.58 +n = 8 + - - -decision-tree-plot + + +decision-tree-plot diff --git a/tests/testthat/_snaps/mlregressionknn/data-split.svg b/tests/testthat/_snaps/mlregressionknn/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlregressionknn/data-split.svg +++ b/tests/testthat/_snaps/mlregressionknn/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressionlinear/data-split.svg b/tests/testthat/_snaps/mlregressionlinear/data-split.svg index 25ca32f6..fa95a138 100644 --- a/tests/testthat/_snaps/mlregressionlinear/data-split.svg +++ b/tests/testthat/_snaps/mlregressionlinear/data-split.svg @@ -21,22 +21,22 @@ - - + + - - - - -Train: 120 -Test: 30 -Total: 150 - + + + + +Train: 120 +Test: 30 +Total: 150 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressionrandomforest/data-split.svg b/tests/testthat/_snaps/mlregressionrandomforest/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlregressionrandomforest/data-split.svg +++ b/tests/testthat/_snaps/mlregressionrandomforest/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.svg b/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.svg index 2bf4d441..e20f118a 100644 --- a/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.svg +++ b/tests/testthat/_snaps/mlregressionrandomforest/mean-decrease-in-accuracy-mac.svg @@ -21,29 +21,29 @@ - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + Nonflavanoids Magnesium Dilution @@ -56,26 +56,26 @@ Flavanoids Proline Color - - - - - - - - - - --0.05 -0.00 -0.05 -0.10 -0.15 -0.20 -0.25 -0.30 -0.35 -Mean Decrease in Accuracy -mean-decrease-in-accuracy-mac + + + + + + + + + + +-0.05 +0.00 +0.05 +0.10 +0.15 +0.20 +0.25 +0.30 +0.35 +Mean Decrease in Accuracy +mean-decrease-in-accuracy-mac diff --git a/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.svg b/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.svg index babc8b81..f981e064 100644 --- a/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.svg +++ b/tests/testthat/_snaps/mlregressionrandomforest/total-increase-in-node-purity.svg @@ -21,29 +21,29 @@ - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + Nonflavanoids Proanthocyanins Magnesium @@ -56,18 +56,18 @@ Phenols Flavanoids Color - - - - - - -0 -2 -4 -6 -8 -Total Increase in Node Purity -total-increase-in-node-purity + + + + + + +0 +2 +4 +6 +8 +Total Increase in Node Purity +total-increase-in-node-purity diff --git a/tests/testthat/_snaps/mlregressionregularized/data-split.svg b/tests/testthat/_snaps/mlregressionregularized/data-split.svg index 2a8ce0f1..689c5b50 100644 --- a/tests/testthat/_snaps/mlregressionregularized/data-split.svg +++ b/tests/testthat/_snaps/mlregressionregularized/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 114 -Validation: 29 -Test: 35 -Total: 178 - + + + + + +Train: 114 +Validation: 29 +Test: 35 +Total: 178 + - - -data-split + + +data-split diff --git a/tests/testthat/_snaps/mlregressionsvm/data-split.svg b/tests/testthat/_snaps/mlregressionsvm/data-split.svg index 34e45820..b254084a 100644 --- a/tests/testthat/_snaps/mlregressionsvm/data-split.svg +++ b/tests/testthat/_snaps/mlregressionsvm/data-split.svg @@ -21,24 +21,24 @@ - - + + - - - - - -Train: 96 -Validation: 24 -Test: 30 -Total: 150 - + + + + + +Train: 96 +Validation: 24 +Test: 30 +Total: 150 + - - -data-split + + +data-split From cfc73412d26e98a5afe6e064b6165079434d8f98 Mon Sep 17 00:00:00 2001 From: Koen Derks Date: Tue, 23 Sep 2025 16:21:24 +0200 Subject: [PATCH 2/2] Update commonMachineLearningRegression.R --- R/commonMachineLearningRegression.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/commonMachineLearningRegression.R b/R/commonMachineLearningRegression.R index 630e01ef..764ec77a 100644 --- a/R/commonMachineLearningRegression.R +++ b/R/commonMachineLearningRegression.R @@ -651,7 +651,7 @@ nTest <- result[["ntest"]] plotData <- data.frame(y = c(nTrainAndValid, nTest), x = c("Train and validation", "Test"), group = c(1, 1)) p <- ggplot2::ggplot(data = plotData, mapping = ggplot2::aes(x = group, y = y, fill = factor(x, levels = c("Test", "Train and validation")))) + - ggplot2::geom_bar(stat = "identity", col = "black", size = 0.5) + + ggplot2::geom_bar(stat = "identity", col = "black", linewidth = 0.5) + ggplot2::scale_y_continuous(name = NULL, limits = c(0, nTrainAndValid + nTest + ((nTrainAndValid + nTest) / 5))) + # adjust limits to include "Total" text ggplot2::coord_flip() + ggplot2::xlab(NULL) +