Skip to content

Commit

Permalink
type in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
advieser committed Aug 28, 2024
1 parent 139314a commit e8adf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PipeOpSmoteNC.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8adf44

Please sign in to comment.