I was reading XGBoost's documentation here: https://xgboost.readthedocs.io/en/latest/tutorials/custom_metric_obj.html.
It's not immediately clear to me how the objective function and evaluation metric differs in their purpose. Which one is minimized in training? Are both used somehow?