Skip to content

Commit 1f83a36

Browse files
authored
apply suggestions from review
1 parent 8c5fcd2 commit 1f83a36

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/glmnet-engines.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ format_glmnet_multinom_class <- function(pred, penalty, lvl, n_obs) {
388388
if (!multi) {
389389
if (length(penalty) != 1) {
390390
cli::cli_abort(c(
391-
"{.var penalty} should be a single numeric value.",
391+
"{.arg penalty} should be a single numeric value.",
392392
"i" = "{.fn multi_predict} can be used to get multiple predictions per row of data."
393393
))
394394
}

R/logistic_reg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ translate.logistic_reg <- function(x, engine = x$engine, ...) {
9898
} else if (quo_get_expr(x$args$mixture) == 1) {
9999
arg_vals$type <- 6 ## lasso
100100
} else {
101-
cli::cli_abort("For the LiblineaR engine, {.var mixture} must be 0 or 1.")
101+
cli::cli_abort("For the LiblineaR engine, {.arg mixture} must be 0 or 1.")
102102
}
103103
}
104104
x$method$fit$args <- arg_vals

R/mlp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ keras_mlp <-
196196

197197
if (penalty > 0 & dropout > 0) {
198198
cli::cli_abort("Please use either dropout or weight decay.", call = NULL)
199-
}
199+
}
200200
if (!is.matrix(x)) {
201201
x <- as.matrix(x)
202202
}

0 commit comments

Comments
 (0)