shingjan commented on code in PR #12141: URL: https://github.com/apache/tvm/pull/12141#discussion_r931552617
########## python/tvm/meta_schedule/cost_model/xgb_model.py: ########## @@ -35,7 +35,24 @@ from ..utils import cpu_count, derived_object, shash2hex from .metric import max_curve + +def optional_xgboost_callback(XGBoostCustomCallback): + # pylint:disable = import-outside-toplevel + try: + from xgboost.callback import TrainingCallback # type: ignore Review Comment: its added. Thanks for the recommendation. Integration test is running. Should be able to post the results of those in this PR once they are finished. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
