Skip to content

Commit

Permalink
add correct package to fit function
Browse files Browse the repository at this point in the history
  • Loading branch information
mitokic committed Apr 10, 2024
1 parent ce26c0c commit 70718e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/multistep_glmnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ glmnet_multistep_fit_impl <- function(x, y,

# fit model
fit_glmnet <- linreg_reg_spec %>%
fit(Target ~ ., data = combined_df)
generics::fit(Target ~ ., data = combined_df)

# create prediction
glmnet_fitted <- predict(fit_glmnet, combined_df)
Expand Down
2 changes: 1 addition & 1 deletion R/multistep_mars.R
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ mars_multistep_fit_impl <- function(x, y,

# fit model
fit_mars <- mars_reg_spec %>%
fit(Target ~ ., data = combined_df)
generics::fit(Target ~ ., data = combined_df)

# create prediction
mars_fitted <- predict(fit_mars, combined_df)
Expand Down

0 comments on commit 70718e0

Please sign in to comment.