From e8adf4469a6b2cb787a73c8fca6a2a9fb04604a3 Mon Sep 17 00:00:00 2001 From: kenomersmannPC Date: Wed, 28 Aug 2024 17:20:24 +0200 Subject: [PATCH] type in error message --- R/PipeOpSmoteNC.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/PipeOpSmoteNC.R b/R/PipeOpSmoteNC.R index 25790ce90..b7956b0af 100644 --- a/R/PipeOpSmoteNC.R +++ b/R/PipeOpSmoteNC.R @@ -96,7 +96,7 @@ PipeOpSmoteNC = R6Class("PipeOpSmoteNC", # SmoteNC cannot generate synthetic data for non-feature columns, currently unsupported_cols = setdiff(unlist(task$col_roles), union(cols, task$target_names)) if (length(unsupported_cols)) { - stopf("SMOTE cannot generate synthetic data for the following columns since they are neither features nor targets: '%s'", + stopf("SMOTENC cannot generate synthetic data for the following columns since they are neither features nor targets: '%s'", paste(unsupported_cols, collapse = "', '")) } # Only factor, ordered, numeric and integer features allowed