Helper function to extract fitted workflow from last_fit()
output
#378
Labels
feature
a feature request or enhancement
last_fit()
output
#378
In tidymodels/tidymodels#58, @hfrick pointed out that it is pretty awkward to get out the fitted workflow from the output of
last_fit()
; it's all$.workflow[[1]]
. 😣 This is what you have to do to get a fitted workflow you can use for prediction.Created on 2021-05-03 by the reprex package (v2.0.0)
What do we think about a little helper function to take care of this, like we have the helper functions for the metrics and predictions? We have
collect_metrics()
,collect_predictions()
-- maybecollect_workflow()
? It's nice and parallel from the same structure. I feel likepull_xx
is another obvious choice but it is getting overloaded quickly for us.The text was updated successfully, but these errors were encountered: