Skip to content

changes for tune >= 2.0.0#386

Open
topepo wants to merge 16 commits intomainfrom
pipe-and-mirai
Open

changes for tune >= 2.0.0#386
topepo wants to merge 16 commits intomainfrom
pipe-and-mirai

Conversation

@topepo
Copy link
Member

@topepo topepo commented Feb 16, 2026

A first set of changes related to the new version of tune and the substitution of the base pipe.

Another PR is coming with more content changes for the new versions.

@topepo
Copy link
Member Author

topepo commented Feb 18, 2026

This might wait to merge until dev parsnip, yardstick, tune, and finetune are on CRAN

add_recipe(ames_rec) |>
add_model(linear_reg() |> set_engine("lm"))

if (is_new_version(rf_res, "RData/resampling.RData") |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function was getting C stack errors so now we'll just test to see if a previous entry has been added to RData.

## Parallel Processing {#parallel}

The models created during resampling are independent of one another. Computations of this kind are sometimes called *embarrassingly parallel*; each model could be fit simultaneously without issues.^[@parallel gives a technical overview of these technologies.] The `r pkg(tune)` package uses the [`r pkg(foreach)`](https://CRAN.R-project.org/package=foreach) package to facilitate parallel computations. These computations could be split across processors on the same computer or across different computers, depending on the chosen technology.
The models created during resampling are independent of one another. Computations of this kind are sometimes called *embarrassingly parallel*; each model could be fit simultaneously without issues.^[@parallel gives a technical overview of these technologies.] The `r pkg(tune)` package can use the [`r pkg(future)`](https://CRAN.R-project.org/package=future) or [`r pkg(mirai)`](https://CRAN.R-project.org/package=mirai) packages to facilitate parallel computations. These computations could be split across processors on the same computer or across different computers, depending on the chosen technology.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These parts are the majority of the change unrelated to the pipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant