# Plot predictions against actual values for all predictions:collect_predictions(result) |>pivot_longer(cols = model) |>ggplot(aes(speed, .pred, colour = value)) +geom_point() +geom_abline(slope =1, intercept =0) +labs(x ='Real value of speed', y ='Prediction', colour ='Model')
Open Questions
I don’t exactly understand how tidymodels performs cross-validation, how the metrics are calculated etc. Documentation of the tidymodels package has not been informative to me so far (probably I have to read more into it).
How to collect other metrics, e.g. mean absolute error?
How to conventiently join the predictors to the prediction tibble?
How do I extract honest coefficients from the linear model?