I think you could use save_pred = TRUE in either tune_grid() or control_grid(). It stores predictions during tuning then you can compute residuals comparing the .predictions column to the target
1 year ago
2
0
1
0
I think you could use save_pred = TRUE in either tune_grid() or control_grid(). It stores predictions during tuning then you can compute residuals comparing the .predictions column to the target