workflows
Bundle preprocessing, modeling and post-processing steps into a single R object
The tidymodels pipeline grew a third stage, and it happens after the model runs.
◆Recent moves
- 11mo ago
Workflows gain a postprocessing stage via tailor
⚡ SPARKAdds a post stage to the workflow object, integrating tailor postprocessors and threading them through every workflow generic. This changes what a workflow is — a full model pipeline including what happens after prediction, not just what happens before.
View source ↗ - 1y ago
Sparse matrices work through fit() and predict()
Enables fitting and prediction on sparse data — dgCMatrix and sparse tibbles now work through add_recipe() and add_variables(), and as new_data for predict(). Adds extract_fit_time() and moves messaging to cli. Sparse input matters most for text and high-cardinality categorical work, where a dense copy is the memory ceiling.
View source ↗ - 2y ago
augment() aligns with parsnip; censored regression supported
Makes augment.workflow() return residuals under the same conditions as the parsnip method, adds an eval_time argument for censored regression, and moves prediction columns to the left of new_data to match parsnip. Also escalates the long-deprecated pull_*() functions to warn on every use.
View source ↗ - 3y ago
Register tuning generics unconditionally
Registers the tune_args() and tunable() methods unconditionally. A method-dispatch detail with no behavioural change for users.
View source ↗ - 3y ago
Missing parsnip extensions now error early; unsupervised specs supported
Makes add_model() error when a model specification needs a parsnip extension package that is not loaded, and adds support for unsupervised model specifications via modelenv. The extension check turns a confusing downstream failure into an immediate one.
View source ↗ - 3y ago
Mode guessing removed; silent offset handling now errors
A maintainer handover release that also stops add_model() guessing a model's mode, a breaking change bringing workflows in line with parsnip::fit(). add_formula() now errors on offsets it used to silently ignore, and butcher can strip the recipe preprocessor's stored template.
View source ↗