Skip to content

Commit a5fc49b

Browse files
committed
Clarify comment for FUTURE ME
1 parent 2353875 commit a5fc49b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

R/linear_reg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ translate.linear_reg <- function(x, engine = x$engine, ...) {
110110
check_glmnet_penalty(x)
111111
if (any(names(x$eng_args) == "path_values")) {
112112
# Since we decouple the parsnip `penalty` argument from being the same
113-
# as the glmnet `lambda` value, this allows users to set the path
114-
# differently from the default that glmnet uses. See
113+
# as the glmnet `lambda` value, `path_values` allows users to set the
114+
# path differently from the default that glmnet uses. See
115115
# https://github.com/tidymodels/parsnip/issues/431
116116
x$method$fit$args$lambda <- x$eng_args$path_values
117117
x$eng_args$path_values <- NULL

R/logistic_reg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ translate.logistic_reg <- function(x, engine = x$engine, ...) {
112112
check_glmnet_penalty(x)
113113
if (any(names(x$eng_args) == "path_values")) {
114114
# Since we decouple the parsnip `penalty` argument from being the same
115-
# as the glmnet `lambda` value, this allows users to set the path
116-
# differently from the default that glmnet uses. See
115+
# as the glmnet `lambda` value, `path_values` allows users to set the
116+
# path differently from the default that glmnet uses. See
117117
# https://github.com/tidymodels/parsnip/issues/431
118118
x$method$fit$args$lambda <- x$eng_args$path_values
119119
x$eng_args$path_values <- NULL

R/multinom_reg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ translate.multinom_reg <- function(x, engine = x$engine, ...) {
103103
check_glmnet_penalty(x)
104104
if (any(names(x$eng_args) == "path_values")) {
105105
# Since we decouple the parsnip `penalty` argument from being the same
106-
# as the glmnet `lambda` value, this allows users to set the path
107-
# differently from the default that glmnet uses. See
106+
# as the glmnet `lambda` value, `path_values` allows users to set the
107+
# path differently from the default that glmnet uses. See
108108
# https://github.com/tidymodels/parsnip/issues/431
109109
x$method$fit$args$lambda <- x$eng_args$path_values
110110
x$eng_args$path_values <- NULL

0 commit comments

Comments
 (0)