Hello ! I have been reading the custom_callback function that autotvm uses to train the XGBoost cost model.
There are a few things that I would like to ask for clarification if possible:
- The
initfunction checks if the model (bst) has abest_scoreattribute which as I understand means that the model has been already trained to some degree so we set thestatevariables and we can keep doing incremental training. However since theinitfunction only happens once per train at the beginning and each train restarts the model, this code has no use at least by default. Am I understanding this correctly ?
The code from github:
- The custom evaluation function that is generated by
xgb_average_recalln_curve_scorereturns the average of N elements of the recall curve score. This N elements are the max N elements according to thepredvalues. Why dont we just average for all the elements instead ? What am I missing here ?
The code from github:
Thanks !