I’m trying to make a plot using the evaluation logs from model training and testing for my XGBoost model (using r) but I can only plot the training evaluation log after performing last_fit (fit to training to test on testing set). I’ve found that ‘learning curves’ can be calculated in python using model.evals_result() but I don’t know what this corresponds to in r. Does anyone know how to retrieve both the training and testing evaluation log from a last_fit XGBoost model?
Attempt at testing and training learning curves
The only way I could plot both training and testing logloss was by also fitting to the test set only (fit() to testing combined with last_fit()). I’m not sure if this was the correct thing to do. Any thoughts or help would be very much appreciated!
Best wishes,
Hannah
Hannah Lumley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.