def callbacks(self, params: ImblanceParams): super().callbacks(params) callbacks.LoggerCallback().hook(self) callbacks.EvalCallback(1, 1).hook(self)
def callbacks(self, params: Params): from thexp import callbacks callbacks.LoggerCallback().hook(self) # 添加日志输出功能 callbacks.AutoRecord().hook(self)
def callbacks(self, params: Params): super().callbacks(params) callbacks.LoggerCallback().hook(self)