tidymodels / tune

Tools for tidy parameter tuning
https://tune.tidymodels.org
Other
276 stars 42 forks source link

reducing complexity in tune #742

Open simonpcouch opened 1 year ago

simonpcouch commented 1 year ago

Much of tune's core internals were written >4yrs ago, before the introduction/maturation of more principled tooling for checking, logging, and erroring from cli and rlang, and before the tidymodels packages that tune extends (parsnip, workflows, recipes) themselves had been developed or matured. Paring away some of tune's internal tooling in favor of that from its dependencies—and some of the complexity that grew organically from tune maturing alongside the tidymodels packages—may make the package more maintainable.

Some areas where I see opportunities:

Logging

tune_grid_loop_iter() is the layer of the grid code path that, for a given resample, carries out the preprocessor and model fitting.

jrosell commented 9 months ago

Related to https://github.com/tidymodels/tune/pull/794, I think that some kind of richer callback interface could be great. The ones from luz from torch I think they are good examples.

simonpcouch commented 6 months ago

We should be able to make much more headway on the listed issues once we don't have to maintain for some foreach edge cases. While we can start in on some of these now, many will have to wait until the deprecation cycle in #866 is wrapped up, 2 or 3 years out.