I ran into some unexpected trouble when trying to extract the fit time from parsnip models.
I was following this blog post:
https://www.simonpcouch.com/blog/2024-04-08-fit-time/
But at extract_fit_time(taxi_fit)
, I receive an error:
> extract_fit_time(taxi_fit)
Error in UseMethod("extract_fit_time") :
no applicable method for 'extract_fit_time' applied to an object of class "c('_xgb.Booster', 'model_fit')"
This suggests, that there is no S3Method for model_fit objects.
Until now, I did not manage to extract fit times for neither models nor workflows.
Am I missing something?